Bitcoin
askpassphrasedialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2018 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_ASKPASSPHRASEDIALOG_H
6 #define BITCOIN_QT_ASKPASSPHRASEDIALOG_H
7 
8 #include <QDialog>
9 
10 class WalletModel;
11 
12 namespace Ui {
13  class AskPassphraseDialog;
14 }
15 
18 class AskPassphraseDialog : public QDialog
19 {
20  Q_OBJECT
21 
22 public:
23  enum Mode {
28  };
29 
30  explicit AskPassphraseDialog(Mode mode, QWidget *parent);
32 
33  void accept();
34 
35  void setModel(WalletModel *model);
36 
37 private:
41  bool fCapsLock;
42 
43 private Q_SLOTS:
44  void textChanged();
45  void secureClearPassFields();
46  void toggleShowPassword(bool);
47 
48 protected:
49  bool event(QEvent *event);
50  bool eventFilter(QObject *object, QEvent *event);
51 };
52 
53 #endif // BITCOIN_QT_ASKPASSPHRASEDIALOG_H
void secureClearPassFields()
Definition: askpassphrasedialog.cpp:280
Definition: walletmodel.h:125
Definition: askpassphrasedialog.h:26
Definition: addressbookpage.h:14
void textChanged()
Definition: askpassphrasedialog.cpp:201
Mode
Definition: askpassphrasedialog.h:23
Definition: askpassphrasedialog.h:27
Definition: ui_askpassphrasedialog.h:145
bool fCapsLock
Definition: askpassphrasedialog.h:41
Ui::AskPassphraseDialog * ui
Definition: askpassphrasedialog.h:38
AskPassphraseDialog(Mode mode, QWidget *parent)
Definition: askpassphrasedialog.cpp:21
bool eventFilter(QObject *object, QEvent *event)
Definition: askpassphrasedialog.cpp:247
WalletModel * model
Definition: askpassphrasedialog.h:40
~AskPassphraseDialog()
Definition: askpassphrasedialog.cpp:79
Definition: askpassphrasedialog.h:24
void toggleShowPassword(bool)
Definition: askpassphrasedialog.cpp:238
void setModel(WalletModel *model)
Definition: askpassphrasedialog.cpp:85
Definition: askpassphrasedialog.h:25
Definition: askpassphrasedialog.h:18
bool event(QEvent *event)
Definition: askpassphrasedialog.cpp:221
Mode mode
Definition: askpassphrasedialog.h:39
void accept()
Definition: askpassphrasedialog.cpp:90