forked from IJHack/QtPass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeygendialog.h
41 lines (33 loc) · 857 Bytes
/
keygendialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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_