mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
36 lines
687 B
C++
36 lines
687 B
C++
#ifndef CIPHERDIALOG_H
|
|
#define CIPHERDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include "CipherSettings.h"
|
|
|
|
class QRegExpValidator;
|
|
|
|
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;
|
|
QRegExpValidator* rawKeyValidator;
|
|
|
|
private slots:
|
|
void checkInputFields();
|
|
};
|
|
|
|
#endif
|