Bitcoin Core  27.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 isExternalSignerChecked() const;
39 
40 private:
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
void setSigners(const std::vector< std::unique_ptr< interfaces::ExternalSigner >> &signers)
bool isEncryptWalletChecked() const
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