Bitcoin Core 28.99.0
P2P Digital Currency
createwalletdialog.h
Go to the documentation of this file.
1// Copyright (c) 2019-2021 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_CREATEWALLETDIALOG_H
6#define BITCOIN_QT_CREATEWALLETDIALOG_H
7
8#include <QDialog>
9
10#include <memory>
11
12namespace interfaces {
13class ExternalSigner;
14} // namespace interfaces
15
16class WalletModel;
17
18namespace Ui {
20}
21
24class CreateWalletDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit CreateWalletDialog(QWidget* parent);
30 virtual ~CreateWalletDialog();
31
32 void setSigners(const std::vector<std::unique_ptr<interfaces::ExternalSigner>>& signers);
33
34 QString walletName() const;
35 bool isEncryptWalletChecked() const;
36 bool isDisablePrivateKeysChecked() const;
37 bool isMakeBlankWalletChecked() const;
38 bool isExternalSignerChecked() const;
39
40private:
41 Ui::CreateWalletDialog *ui;
42 bool m_has_signers = false;
43};
44
45#endif // BITCOIN_QT_CREATEWALLETDIALOG_H
Dialog for creating wallets.
bool isMakeBlankWalletChecked() const
QString walletName() const
Ui::CreateWalletDialog * ui
bool isDisablePrivateKeysChecked() const
bool isEncryptWalletChecked() const
void setSigners(const std::vector< std::unique_ptr< interfaces::ExternalSigner > > &signers)
bool isExternalSignerChecked() const
CreateWalletDialog(QWidget *parent)
Enables interaction with an external signing device or service, such as a hardware wallet.
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:48