aboutsummaryrefslogtreecommitdiff
path: root/src/qt/askpassphrasedialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/askpassphrasedialog.h')
-rw-r--r--src/qt/askpassphrasedialog.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/qt/askpassphrasedialog.h b/src/qt/askpassphrasedialog.h
index 761612cbfd..b500ff49bf 100644
--- a/src/qt/askpassphrasedialog.h
+++ b/src/qt/askpassphrasedialog.h
@@ -9,16 +9,18 @@ namespace Ui {
class WalletModel;
+/** Multifunctional dialog to ask for passphrases. Used for encryption, unlocking, and changing the passphrase.
+ */
class AskPassphraseDialog : public QDialog
{
Q_OBJECT
public:
enum Mode {
- Encrypt, // Ask passphrase x2
- Unlock, // Ask passphrase
- ChangePass, // Ask old passphrase + new passphrase x2
- Decrypt // Ask passphrase
+ Encrypt, /**< Ask passphrase twice and encrypt */
+ Unlock, /**< Ask passphrase and unlock */
+ ChangePass, /**< Ask old passphrase + new passphrase twice */
+ Decrypt /**< Ask passphrase and decrypt wallet */
};
explicit AskPassphraseDialog(Mode mode, QWidget *parent = 0);
@@ -32,9 +34,12 @@ private:
Ui::AskPassphraseDialog *ui;
Mode mode;
WalletModel *model;
+ bool fCapsLock;
private slots:
void textChanged();
+ bool event(QEvent *event);
+ bool eventFilter(QObject *, QEvent *event);
};
#endif // ASKPASSPHRASEDIALOG_H