aboutsummaryrefslogtreecommitdiffstats
path: root/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/mainwindow.h b/mainwindow.h
index 0097062..c17a71e 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -31,6 +31,13 @@
#include "aboutdialog.h"
#include "verifynotification.h"
#include "wizard.h"
+//#include "kgpg/kgpgtextinterface.h"
+#include "kgpg/core/kgpgkey.h"
+#include "kgpg/transactions/kgpgencrypt.h"
+#include "kgpg/transactions/kgpgdecrypt.h"
+#include "kgpg/transactions/kgpgexport.h"
+#include "kgpg/transactions/kgpgimport.h"
+#include "kgpg/transactions/kgpgsigntext.h"
QT_BEGIN_NAMESPACE
class QMainWindow;
@@ -87,16 +94,19 @@ private slots:
* with the currently checked keys
*/
void encrypt();
+ void slotEncryptDone(int result);
/**
* @details Show a passphrase dialog and decrypt the text of currently active tab.
*/
void decrypt();
+ void slotDecryptDone(int result);
/**
* @details Sign the text of currently active tab with the checked private keys
*/
void sign();
+ void slotSignDone(int result);
/**
* @details Verify the text of currently active tab and show verify information.
@@ -129,11 +139,14 @@ private slots:
* @details Import keys from currently active tab to keylist if possible.
*/
void importKeyFromEdit();
+ void startImport(KGpgImport *import);
+ void slotImportDone(int result);
/**
* @details Append the selected keys to currently active textedit.
*/
void appendSelectedKeys();
+ void slotAppendSelectedKeysReady(int result);
/**
* @details Copy the mailaddress of selected key to clipboard.
@@ -277,6 +290,13 @@ private:
*/
void parseMime(QByteArray *message);
+ /**
+ * @brief show a message in the status bar
+ * @param msg the text to show
+ * @param keep if the text should stay visible or may be hidden after a while
+ */
+ void changeMessage(const QString &msg, const bool keep = false);
+
TextEdit *edit; /** Tabwidget holding the edit-windows */
QMenu *fileMenu; /** Submenu for file operations*/
QMenu *editMenu; /** Submenu for text operations*/