Raven Core  3.0.0
P2P Digital Currency
askpassphrasedialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_QT_ASKPASSPHRASEDIALOG_H
7 #define RAVEN_QT_ASKPASSPHRASEDIALOG_H
8 
9 #include <QDialog>
10 
11 class WalletModel;
12 
13 namespace Ui {
14  class AskPassphraseDialog;
15 }
16 
19 class AskPassphraseDialog : public QDialog
20 {
21  Q_OBJECT
22 
23 public:
24  enum Mode {
28  Decrypt
29  };
30 
31  explicit AskPassphraseDialog(Mode mode, QWidget *parent);
33 
34  void accept();
35 
36  void setModel(WalletModel *model);
37 
38 private:
39  Ui::AskPassphraseDialog *ui;
42  bool fCapsLock;
43 
44 private Q_SLOTS:
45  void textChanged();
46  void secureClearPassFields();
47 
48 protected:
49  bool event(QEvent *event);
50  bool eventFilter(QObject *object, QEvent *event);
51 };
52 
53 #endif // RAVEN_QT_ASKPASSPHRASEDIALOG_H
Ask passphrase twice and encrypt.
Ask passphrase and unlock.
Ui::AskPassphraseDialog * ui
Interface to Raven wallet from Qt view code.
Definition: walletmodel.h:165
Multifunctional dialog to ask for passphrases.
Ask old passphrase + new passphrase twice.