Dogecoin Core  1.14.2
P2P Digital Currency
askpassphrasedialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 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 {
27  Decrypt
28  };
29 
30  explicit AskPassphraseDialog(Mode mode, QWidget *parent);
32 
33  void accept();
34 
35  void setModel(WalletModel *model);
36 
37 private:
38  Ui::AskPassphraseDialog *ui;
41  bool fCapsLock;
42 
43 private Q_SLOTS:
44  void textChanged();
45  void secureClearPassFields();
46 
47 protected:
48  bool event(QEvent *event);
49  bool eventFilter(QObject *object, QEvent *event);
50 };
51 
52 #endif // BITCOIN_QT_ASKPASSPHRASEDIALOG_H
Multifunctional dialog to ask for passphrases.
void setModel(WalletModel *model)
@ Unlock
Ask passphrase and unlock.
@ Encrypt
Ask passphrase twice and encrypt.
@ Decrypt
Ask passphrase and decrypt wallet.
@ ChangePass
Ask old passphrase + new passphrase twice.
AskPassphraseDialog(Mode mode, QWidget *parent)
bool event(QEvent *event)
Ui::AskPassphraseDialog * ui
bool eventFilter(QObject *object, QEvent *event)
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:99