Classified ads
|
class for dialog for listing (attached) files More...
#include <attachmentlistdialog.h>
Signals | |
void | error (MController::CAErrorSituation aError, const QString &aExplanation) |
Signals inherited from DialogBase | |
void | error (MController::CAErrorSituation aError, const QString &aExplanation) |
Public Member Functions | |
AttachmentListDialog (QWidget *aParent, MController *aController, const Profile &aSelectedProfile, QList< Hash > &aFilesToDisplay, const Hash &aNodeToTryForRetrieval=KNullHash) | |
~AttachmentListDialog () | |
Static Public Member Functions | |
static Hash | tryFindNodeByProfile (const Hash &aProfileFingerPrint, MController &aController) |
Private Slots | |
void | okButtonClicked () |
void | cancelButtonClicked () |
void | fileListDoubleClicked (const QModelIndex &aIndex) |
void | exportSharedFile () |
Private Attributes | |
Ui_attachmentListDialog | ui |
BinaryFileListingModel * | iListingModel |
QAction * | iExportSharedFileAction |
const Hash | iNodeToTryForRetrieval |
Additional Inherited Members | |
Protected Slots inherited from DialogBase | |
void | attachButtonClicked () |
Protected Member Functions inherited from DialogBase | |
DialogBase (QWidget *aParent, MController *aController, const Profile &aSelectedProfile) | |
Hash | publishBinaryAttachment (const QString &aFileName, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL) |
Protected Attributes inherited from DialogBase | |
MController * | iController |
const Profile & | iSelectedProfile |
QList< QString > | iFilesAboutToBeAttached |
QLabel * | iAttachmentListLabel |
class for dialog for listing (attached) files
AttachmentListDialog::AttachmentListDialog | ( | QWidget * | aParent, |
MController * | aController, | ||
const Profile & | aSelectedProfile, | ||
QList< Hash > & | aFilesToDisplay, | ||
const Hash & | aNodeToTryForRetrieval = KNullHash |
||
) |
Constructor.
aParent | parent widget |
aController | application controller |
aSelectedProfile | operator profile currently open on application |
aFilesToDisplay | list of hashes that are supposed to be found from table of binary blobs |
aNodeToTryForRetrieval | In case the selected file is not found from local db table, this is the node where query for missing file could be first sent, in addition to nodes determined by the binary blob hash. Use-case for this is CA attachment where the posting-node is known from CA metadata. If we don't have the binary blob, we could first send query about attachment to the originating node. |
AttachmentListDialog::~AttachmentListDialog | ( | ) |
destructor
|
privateslot |
|
signal |
|
privateslot |
|
privateslot |
|
privateslot |
|
static |
Method that tries to find node fingerprint by profile. This is used to find original posting node of binary attachments that are associated with many objects (ca, privmsg etc.)
aProfileFingerPrint | fingerprint of profile whose node is sought for |
aController | application controller. |
|
private |
context-menu action for saving to filesystem a shared file
|
private |
|
private |
|
private |