createwalletdialog.h raw

   1  // Copyright (c) 2019-present 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  
  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 isExternalSignerChecked() const;
  39  
  40  private:
  41      Ui::CreateWalletDialog *ui;
  42      bool m_has_signers = false;
  43  };
  44  
  45  #endif // BITCOIN_QT_CREATEWALLETDIALOG_H
  46