diff options
Diffstat (limited to 'attachments.h')
-rw-r--r-- | attachments.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/attachments.h b/attachments.h index b90c243..4c143bb 100644 --- a/attachments.h +++ b/attachments.h @@ -24,6 +24,7 @@ #include "context.h" #include "keylist.h" +#include "mime.h" class QVBoxLayout; class QDebug; @@ -42,26 +43,18 @@ class Attachments : public QWidget Q_OBJECT public slots: - void addFile(); - void encryptFile(); - void decryptFile(); + void saveFile(); public: - Attachments(QWidget *parent = 0); - void setIconPath(QString iconPath); - void setContext(GpgME::Context *ctx); - void setKeyList(KeyList *keylist); + Attachments(QString iconpath, QWidget *parent = 0); + void addMimePart(MimePart *mp); private: void createActions(); QStringList *getSelected(); - QListWidget *m_attachmentList; - QAction *addFileAct; - QAction *encryptAct; - QAction *decryptAct; + QTableWidget *mAttachmentTable; + QAction *saveFileAct; QString iconPath; - GpgME::Context *m_ctx; - KeyList *m_keyList; protected: void contextMenuEvent(QContextMenuEvent *event); |