summaryrefslogtreecommitdiffstats
path: root/src/keygendialog.h
diff options
context:
space:
mode:
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_