Bitcoin Core  22.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 
12 namespace interfaces {
13 class ExternalSigner;
14 } // namespace interfaces
15 
16 class WalletModel;
17 
18 namespace Ui {
19  class CreateWalletDialog;
20 }
21 
24 class CreateWalletDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
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 isDescriptorWalletChecked() const;
39  bool isExternalSignerChecked() const;
40 
41 private:
42  Ui::CreateWalletDialog *ui;
43  bool m_has_signers = false;
44 };
45 
46 #endif // BITCOIN_QT_CREATEWALLETDIALOG_H
interfaces
Definition: dummywallet.cpp:10
WalletModel
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:52
CreateWalletDialog::isMakeBlankWalletChecked
bool isMakeBlankWalletChecked() const
Definition: createwalletdialog.cpp:152
CreateWalletDialog::isDisablePrivateKeysChecked
bool isDisablePrivateKeysChecked() const
Definition: createwalletdialog.cpp:147
CreateWalletDialog::m_has_signers
bool m_has_signers
Definition: createwalletdialog.h:43
CreateWalletDialog::isEncryptWalletChecked
bool isEncryptWalletChecked() const
Definition: createwalletdialog.cpp:142
CreateWalletDialog::setSigners
void setSigners(const std::vector< std::unique_ptr< interfaces::ExternalSigner >> &signers)
Definition: createwalletdialog.cpp:116
CreateWalletDialog::ui
Ui::CreateWalletDialog * ui
Definition: createwalletdialog.h:42
ExternalSigner
Enables interaction with an external signing device or service, such as a hardware wallet.
Definition: external_signer.h:18
Ui
Definition: addressbookpage.h:14
CreateWalletDialog
Dialog for creating wallets.
Definition: createwalletdialog.h:24
CreateWalletDialog::isDescriptorWalletChecked
bool isDescriptorWalletChecked() const
Definition: createwalletdialog.cpp:157
CreateWalletDialog::~CreateWalletDialog
virtual ~CreateWalletDialog()
Definition: createwalletdialog.cpp:111
CreateWalletDialog::isExternalSignerChecked
bool isExternalSignerChecked() const
Definition: createwalletdialog.cpp:162
CreateWalletDialog::walletName
QString walletName() const
Definition: createwalletdialog.cpp:137
CreateWalletDialog::CreateWalletDialog
CreateWalletDialog(QWidget *parent)
Definition: createwalletdialog.cpp:17