createwalletdialog.h raw
1 // Copyright (c) 2019-2021 The Limenka 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 LIMENKA_QT_CREATEWALLETDIALOG_H
6 #define LIMENKA_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
22 /** Dialog for creating wallets
23 */
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 // LIMENKA_QT_CREATEWALLETDIALOG_H
47