Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
11
12class WalletModel;
13
14namespace Ui {
16}
17
21class AskPassphraseDialog : public QDialog {
23
24public:
30
31 explicit AskPassphraseDialog(Mode mode, QWidget *parent,
32 SecureString *passphrase_out = nullptr);
34
35 void accept() override;
36
38
39private:
40 Ui::AskPassphraseDialog *ui;
45
46private Q_SLOTS:
47 void textChanged();
49 void toggleShowPassword(bool);
50
51protected:
52 bool event(QEvent *event) override;
53 bool eventFilter(QObject *object, QEvent *event) override;
54};
55
56#endif // BITCOIN_QT_ASKPASSPHRASEDIALOG_H
Multifunctional dialog to ask for passphrases.
SecureString * m_passphrase_out
void setModel(WalletModel *model)
bool eventFilter(QObject *object, QEvent *event) override
bool event(QEvent *event) override
@ Unlock
Ask passphrase and unlock.
@ Encrypt
Ask passphrase twice and encrypt.
@ ChangePass
Ask old passphrase + new passphrase twice.
Ui::AskPassphraseDialog * ui
Interface to Bitcoin wallet from Qt view code.
Definition walletmodel.h:47
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
Definition secure.h:55