summaryrefslogtreecommitdiffstats
path: root/src/keygendialog.h
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2016-12-13 00:05:58 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2016-12-13 00:05:58 +0100
commit109958c1a14bbfab79bb30e72f2a706bcada4c60 (patch)
tree26de8388b1587c962a039c42efc93361a70f09c8 /src/keygendialog.h
parent641598e971bda056aea618bb67c8ab88e7b9da26 (diff)
Moved sources to src
Diffstat (limited to 'src/keygendialog.h')
-rw-r--r--src/keygendialog.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/keygendialog.h b/src/keygendialog.h
new file mode 100644
index 00000000..64af8307
--- /dev/null
+++ b/src/keygendialog.h
@@ -0,0 +1,41 @@
+#ifndef KEYGENDIALOG_H_
+#define KEYGENDIALOG_H_
+
+#include "configdialog.h"
+#include <QCloseEvent>
+#include <QDialog>
+
+namespace Ui {
+class KeygenDialog;
+}
+
+/*!
+ \class KeygenDialog
+ \brief Handles GPG keypair generation.
+ */
+class KeygenDialog : public QDialog {
+ Q_OBJECT
+
+public:
+ explicit KeygenDialog(ConfigDialog *parent = 0);
+ ~KeygenDialog();
+
+protected:
+ void closeEvent(QCloseEvent *event);
+
+private slots:
+ void on_passphrase1_textChanged(const QString &arg1);
+ void on_passphrase2_textChanged(const QString &arg1);
+ void on_checkBox_stateChanged(int arg1);
+ void on_email_textChanged(const QString &arg1);
+ void on_name_textChanged(const QString &arg1);
+
+private:
+ Ui::KeygenDialog *ui;
+ void replace(QString, QString);
+ void done(int r);
+ void no_protection(bool enable);
+ ConfigDialog *dialog;
+};
+
+#endif // KEYGENDIALOG_H_