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, const Profile &aSelectedProfile)
 
Hash publishBinaryAttachment (const QString &aFileName, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL)
 

Protected Attributes

MControlleriController
 
const ProfileiSelectedProfile
 
QList< QString > iFilesAboutToBeAttached
 
QLabel * iAttachmentListLabel
 

Detailed Description

base-class for content-posting dialogs of classified ads

Constructor & Destructor Documentation

DialogBase::DialogBase ( QWidget *  aParent,
MController aController,
const 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 QString &  aFileName,
bool  aForceNoEncryption = false,
const QList< Hash > *  aBinaryRecipientList = NULL 
)
protected

method for publishing an (attachment) file

Parameters
aFileNameis name of the file in filesystem
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<QString> DialogBase::iFilesAboutToBeAttached
protected

used in posting-dialogs

const Profile& DialogBase::iSelectedProfile
protected

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