summaryrefslogtreecommitdiffstats
path: root/keygendialog.h
blob: 19d996cef2f241b70aa6c806b48ad87891fbd0bd (plain)
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
#ifndef KEYGENDIALOG_H_
#define KEYGENDIALOG_H_

#include <QDialog>
#include <QCloseEvent>
#include "configdialog.h"

namespace Ui {
class KeygenDialog;
}

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_