Anoncoin  0.9.4
P2P Digital Currency
askpassphrasedialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef ASKPASSPHRASEDIALOG_H
7 #define 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 {
29  };
30 
31  explicit AskPassphraseDialog(Mode mode, QWidget *parent);
33 
34  void accept();
35 
36  void setModel(WalletModel *model);
37 
38 private:
42  bool fCapsLock;
43 
44 private slots:
45  void textChanged();
46 
47 protected:
48  bool event(QEvent *event);
49  bool eventFilter(QObject *object, QEvent *event);
50 };
51 
52 #endif // ASKPASSPHRASEDIALOG_H
bool event(QEvent *event)
Ask passphrase twice and encrypt.
Ask passphrase and unlock.
Ui::AskPassphraseDialog * ui
AskPassphraseDialog(Mode mode, QWidget *parent)
Interface to Anoncoin wallet from Qt view code.
Definition: walletmodel.h:97
Multifunctional dialog to ask for passphrases.
Ask passphrase and decrypt wallet.
bool eventFilter(QObject *object, QEvent *event)
Ask old passphrase + new passphrase twice.
void setModel(WalletModel *model)