-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathCipherDialog.h
More file actions
37 lines (27 loc) · 763 Bytes
/
CipherDialog.h
File metadata and controls
37 lines (27 loc) · 763 Bytes
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 CIPHERDIALOG_H
#define CIPHERDIALOG_H
#include <QDialog>
#include "CipherSettings.h"
class QRegularExpressionValidator;
namespace Ui {
class CipherDialog;
}
class CipherDialog : public QDialog
{
Q_OBJECT
public:
// Set the encrypt parameter to true when the dialog is used to encrypt a database;
// set it to false if the dialog is used to ask the user for the key to decrypt a file.
explicit CipherDialog(QWidget* parent, bool encrypt);
~CipherDialog() override;
CipherSettings getCipherSettings() const;
private:
Ui::CipherDialog* ui;
bool encryptMode;
QRegularExpressionValidator* rawKeyValidator;
private slots:
void checkInputFields();
void toggleEncryptionSettings();
void help();
};
#endif