Files
sqlitebrowser/src/CipherDialog.h
Martin Kleusberg 8fb9176f99 cipher: Show encryption status in the main window statusbar
Add a note to the status bar of the main window when an encrpyted
database is opened.

Also make some methods in the CipherDialog class const.
2014-11-02 18:15:13 +01:00

33 lines
640 B
C++

#ifndef CIPHERDIALOG_H
#define CIPHERDIALOG_H
#include <QDialog>
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();
// Allow read access tothe input fields
QString password() const;
int pageSize() const;
private:
Ui::CipherDialog* ui;
bool encryptMode;
private slots:
void checkInputFields();
};
#endif