Classified ads
Signals | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
DialogBase Class Reference

base-class for content-posting dialogs of classified ads More...

#include <dialogbase.h>

Inheritance diagram for DialogBase:
Inheritance graph
[legend]
Collaboration diagram for DialogBase:
Collaboration graph
[legend]

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 

Protected Slots

void attachButtonClicked ()
 

Protected Member Functions

 DialogBase (QWidget *aParent, MController *aController, Profile &aSelectedProfile)
 
Hash publishBinaryAttachment (const MetadataQueryDialog::MetadataResultSet &aFileMetadata, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL)
 

Protected Attributes

MControlleriController
 
ProfileiSelectedProfile
 
QList< MetadataQueryDialog::MetadataResultSetiFilesAboutToBeAttached
 
QLabel * iAttachmentListLabel
 

Detailed Description

base-class for content-posting dialogs of classified ads

Constructor & Destructor Documentation

DialogBase::DialogBase ( QWidget *  aParent,
MController aController,
Profile aSelectedProfile 
)
protected

constructor

Member Function Documentation

void DialogBase::attachButtonClicked ( )
protectedslot
void DialogBase::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal
Hash DialogBase::publishBinaryAttachment ( const MetadataQueryDialog::MetadataResultSet aFileMetadata,
bool  aForceNoEncryption = false,
const QList< Hash > *  aBinaryRecipientList = NULL 
)
protected

method for publishing an (attachment) file

Parameters
aFileMetadatadescribes the file. The iFileName member of the structure must contain valid filesystem filename
aForceNoEncryptionif set to true, always produce plain-text binary, with no encryption
aBinaryRecipientListif non-NULL, contains list of operator key fingerprints that are the operators that will be able to read the binary.
Returns
fingerprint of the published file or KNullHash

Member Data Documentation

QLabel* DialogBase::iAttachmentListLabel
protected

label used to show list of attached files. pointer must be set by inheriting class prior to call to slot attachButtonClicked()

MController* DialogBase::iController
protected
QList<MetadataQueryDialog::MetadataResultSet> DialogBase::iFilesAboutToBeAttached
protected

list of files used in posting-dialogs

Profile& DialogBase::iSelectedProfile
protected

The documentation for this class was generated from the following file: