2019-02-20 12:22:07 -05:00
|
|
|
// Copyright (c) 2019 The Bitcoin Core developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_QT_CREATEWALLETDIALOG_H
|
|
|
|
#define BITCOIN_QT_CREATEWALLETDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2021-06-16 14:49:09 -04:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace interfaces {
|
2019-11-07 19:06:40 +01:00
|
|
|
class ExternalSigner;
|
2021-06-16 14:49:09 -04:00
|
|
|
} // namespace interfaces
|
|
|
|
|
2021-05-13 15:23:19 +02:00
|
|
|
class WalletModel;
|
2019-11-07 19:06:40 +01:00
|
|
|
|
2019-02-20 12:22:07 -05:00
|
|
|
namespace Ui {
|
|
|
|
class CreateWalletDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Dialog for creating wallets
|
|
|
|
*/
|
|
|
|
class CreateWalletDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CreateWalletDialog(QWidget* parent);
|
|
|
|
virtual ~CreateWalletDialog();
|
|
|
|
|
2021-06-16 14:49:09 -04:00
|
|
|
void setSigners(const std::vector<std::unique_ptr<interfaces::ExternalSigner>>& signers);
|
2019-11-07 19:06:40 +01:00
|
|
|
|
2019-02-20 12:22:07 -05:00
|
|
|
QString walletName() const;
|
2019-09-07 11:08:28 +02:00
|
|
|
bool isEncryptWalletChecked() const;
|
|
|
|
bool isDisablePrivateKeysChecked() const;
|
|
|
|
bool isMakeBlankWalletChecked() const;
|
2019-07-11 18:21:21 -04:00
|
|
|
bool isDescriptorWalletChecked() const;
|
2020-02-21 21:13:43 +01:00
|
|
|
bool isExternalSignerChecked() const;
|
2019-02-20 12:22:07 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::CreateWalletDialog *ui;
|
2021-08-05 23:27:53 -04:00
|
|
|
bool m_has_signers = false;
|
2019-02-20 12:22:07 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BITCOIN_QT_CREATEWALLETDIALOG_H
|