Classified ads
Signals | Public Member Functions | Static Public Member Functions | Private Slots | Private Attributes | List of all members
AttachmentListDialog Class Reference

class for dialog for listing (attached) files More...

#include <attachmentlistdialog.h>

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

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, 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 infoButtonClicked ()
 
void fileListDoubleClicked (const QModelIndex &aIndex)
 
void exportSharedFile ()
 

Private Attributes

Ui_attachmentListDialog ui
 
BinaryFileListingModeliListingModel
 
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, Profile &aSelectedProfile)
 
Hash publishBinaryAttachment (const MetadataQueryDialog::MetadataResultSet &aFileMetadata, bool aForceNoEncryption=false, const QList< Hash > *aBinaryRecipientList=NULL)
 
- Protected Attributes inherited from DialogBase
MControlleriController
 
ProfileiSelectedProfile
 
QList< MetadataQueryDialog::MetadataResultSetiFilesAboutToBeAttached
 
QLabel * iAttachmentListLabel
 

Detailed Description

class for dialog for listing (attached) files

Constructor & Destructor Documentation

◆ AttachmentListDialog()

AttachmentListDialog::AttachmentListDialog ( QWidget *  aParent,
MController aController,
Profile aSelectedProfile,
QList< Hash > &  aFilesToDisplay,
const Hash aNodeToTryForRetrieval = KNullHash 
)

Constructor.

Parameters
aParentparent widget
aControllerapplication controller
aSelectedProfileoperator profile currently open on application
aFilesToDisplaylist of hashes that are supposed to be found from table of binary blobs
aNodeToTryForRetrievalIn 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::~AttachmentListDialog ( )

destructor

Member Function Documentation

◆ cancelButtonClicked

void AttachmentListDialog::cancelButtonClicked ( )
privateslot

◆ error

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

◆ exportSharedFile

void AttachmentListDialog::exportSharedFile ( )
privateslot

◆ fileListDoubleClicked

void AttachmentListDialog::fileListDoubleClicked ( const QModelIndex &  aIndex)
privateslot

◆ infoButtonClicked

void AttachmentListDialog::infoButtonClicked ( )
privateslot

file information button clicked

◆ okButtonClicked

void AttachmentListDialog::okButtonClicked ( )
privateslot

◆ tryFindNodeByProfile()

static Hash AttachmentListDialog::tryFindNodeByProfile ( const Hash aProfileFingerPrint,
MController aController 
)
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.)

Parameters
aProfileFingerPrintfingerprint of profile whose node is sought for
aControllerapplication controller.
Returns
node hash or KNullHash if nothing found

Member Data Documentation

◆ iExportSharedFileAction

QAction* AttachmentListDialog::iExportSharedFileAction
private

context-menu action for saving to filesystem a shared file

◆ iListingModel

BinaryFileListingModel* AttachmentListDialog::iListingModel
private

◆ iNodeToTryForRetrieval

const Hash AttachmentListDialog::iNodeToTryForRetrieval
private

◆ ui

Ui_attachmentListDialog AttachmentListDialog::ui
private

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