QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
keygendialog.h
1// SPDX-FileCopyrightText: 2015 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
3#ifndef SRC_KEYGENDIALOG_H_
4#define SRC_KEYGENDIALOG_H_
5
6#include <QDialog>
7#include <memory>
8
9#include "qprogressindicator.h"
10
11namespace Ui {
12class KeygenDialog;
13}
14
15class ConfigDialog;
16class QCloseEvent;
17
22class KeygenDialog : public QDialog {
23 Q_OBJECT
24
25public:
30 explicit KeygenDialog(ConfigDialog *parent = nullptr);
31 ~KeygenDialog() override;
32
33protected:
38 void closeEvent(QCloseEvent *event) override;
39
40private slots:
41 void on_passphrase1_textChanged(const QString &arg1);
42 void on_passphrase2_textChanged(const QString &arg1);
43 void on_checkBox_stateChanged(int arg1);
44 void on_email_textChanged(const QString &arg1);
45 void on_name_textChanged(const QString &arg1);
46
47private:
48 Ui::KeygenDialog *ui;
49 void replace(const QString &, const QString &);
50 void done(int r) override;
51 void no_protection(bool enable);
52 ConfigDialog *dialog;
53 std::unique_ptr<QProgressIndicator> m_progressIndicator;
54};
55
56#endif // SRC_KEYGENDIALOG_H_
The ConfigDialog handles the configuration interface.
void closeEvent(QCloseEvent *event) override
Handle dialog close, emitting appropriate signals.
KeygenDialog(ConfigDialog *parent=nullptr)
Construct a KeygenDialog with an optional parent ConfigDialog.