5 #ifndef BITCOIN_QT_WALLETCONTROLLER_H 6 #define BITCOIN_QT_WALLETCONTROLLER_H 18 #include <QMessageBox> 20 #include <QProgressDialog> 143 void open(
const std::string& path);
169 void restore(
const fs::path& backup_file,
const std::string& wallet_name);
178 #endif // BITCOIN_QT_WALLETCONTROLLER_H std::vector< WalletModel * > m_wallets
virtual ~CreateWalletActivity()
bilingual_str m_error_message
interfaces::Node & node() const
CreateWalletDialog * m_create_wallet_dialog
void closeAllWallets(QWidget *parent=nullptr)
void opened(WalletModel *wallet_model)
const PlatformStyle *const m_platform_style
CreateWalletActivity(WalletController *wallet_controller, QWidget *parent_widget)
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
OpenWalletActivity(WalletController *wallet_controller, QWidget *parent_widget)
Controller between interfaces::Node, WalletModel instances and the GUI.
LoadWalletsActivity(WalletController *wallet_controller, QWidget *parent_widget)
QObject *const m_activity_worker
Filesystem operations and types.
void coinsSent(WalletModel *wallet_model, SendCoinsRecipient recipient, QByteArray transaction)
std::map< std::string, bool > listWalletDir() const
Returns all wallet names in the wallet dir mapped to whether the wallet is loaded.
virtual ~WalletControllerActivity()=default
SecureString m_passphrase
RestoreWalletActivity(WalletController *wallet_controller, QWidget *parent_widget)
void created(WalletModel *wallet_model)
void closeWallet(WalletModel *wallet_model, QWidget *parent=nullptr)
void restore(const fs::path &backup_file, const std::string &wallet_name)
QWidget *const m_parent_widget
void open(const std::string &path)
std::vector< bilingual_str > m_warning_message
ClientModel & m_client_model
interfaces::Node & m_node
void walletAdded(WalletModel *wallet_model)
Model for Bitcoin network client.
void restored(WalletModel *wallet_model)
AskPassphraseDialog * m_passphrase_dialog
Interface from Qt to configuration data structure for Bitcoin client.
Interface to Bitcoin wallet from Qt view code.
Multifunctional dialog to ask for passphrases.
Dialog for creating wallets.
WalletModel * getOrCreateWallet(std::unique_ptr< interfaces::Wallet > wallet)
void walletRemoved(WalletModel *wallet_model)
WalletControllerActivity(WalletController *wallet_controller, QWidget *parent_widget)
QThread *const m_activity_thread
WalletController(ClientModel &client_model, const PlatformStyle *platform_style, QObject *parent)
std::unique_ptr< interfaces::Handler > m_handler_load_wallet
void showProgressDialog(const QString &title_text, const QString &label_text)
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
WalletModel * m_wallet_model
Top-level interface for a bitcoin node (bitcoind process).
OptionsModel *const m_options_model
void removeAndDeleteWallet(WalletModel *wallet_model)
WalletController *const m_wallet_controller