![]() |
Bitcoin Core
26.1.0
P2P Digital Currency
|
Controller between interfaces::Node, WalletModel instances and the GUI. More...
#include <walletcontroller.h>
Signals | |
| void | walletAdded (WalletModel *wallet_model) |
| void | walletRemoved (WalletModel *wallet_model) |
| void | coinsSent (WalletModel *wallet_model, SendCoinsRecipient recipient, QByteArray transaction) |
Public Member Functions | |
| WalletController (ClientModel &client_model, const PlatformStyle *platform_style, QObject *parent) | |
| ~WalletController () | |
| WalletModel * | getOrCreateWallet (std::unique_ptr< interfaces::Wallet > wallet) |
| std::map< std::string, bool > | listWalletDir () const |
| Returns all wallet names in the wallet dir mapped to whether the wallet is loaded. More... | |
| void | closeWallet (WalletModel *wallet_model, QWidget *parent=nullptr) |
| void | closeAllWallets (QWidget *parent=nullptr) |
| void | migrateWallet (WalletModel *wallet_model, QWidget *parent=nullptr) |
Private Member Functions | |
| void | removeAndDeleteWallet (WalletModel *wallet_model) |
Private Attributes | |
| QThread *const | m_activity_thread |
| QObject *const | m_activity_worker |
| ClientModel & | m_client_model |
| interfaces::Node & | m_node |
| const PlatformStyle *const | m_platform_style |
| OptionsModel *const | m_options_model |
| QMutex | m_mutex |
| std::vector< WalletModel * > | m_wallets |
| std::unique_ptr< interfaces::Handler > | m_handler_load_wallet |
Friends | |
| class | WalletControllerActivity |
| class | MigrateWalletActivity |
Controller between interfaces::Node, WalletModel instances and the GUI.
Definition at line 50 of file walletcontroller.h.
| WalletController::WalletController | ( | ClientModel & | client_model, |
| const PlatformStyle * | platform_style, | ||
| QObject * | parent | ||
| ) |
| WalletController::~WalletController | ( | ) |
Definition at line 60 of file walletcontroller.cpp.
| void WalletController::closeAllWallets | ( | QWidget * | parent = nullptr | ) |
| void WalletController::closeWallet | ( | WalletModel * | wallet_model, |
| QWidget * | parent = nullptr |
||
| ) |
Definition at line 81 of file walletcontroller.cpp.
|
signal |
Definition at line 172 of file moc_walletcontroller.cpp.
| WalletModel * WalletController::getOrCreateWallet | ( | std::unique_ptr< interfaces::Wallet > | wallet | ) |
Definition at line 114 of file walletcontroller.cpp.
| std::map< std::string, bool > WalletController::listWalletDir | ( | ) | const |
Returns all wallet names in the wallet dir mapped to whether the wallet is loaded.
Definition at line 67 of file walletcontroller.cpp.
| void WalletController::migrateWallet | ( | WalletModel * | wallet_model, |
| QWidget * | parent = nullptr |
||
| ) |
|
private |
|
signal |
Definition at line 158 of file moc_walletcontroller.cpp.
|
signal |
Definition at line 165 of file moc_walletcontroller.cpp.
|
friend |
Definition at line 89 of file walletcontroller.h.
|
friend |
Definition at line 88 of file walletcontroller.h.
|
private |
Definition at line 78 of file walletcontroller.h.
|
private |
Definition at line 79 of file walletcontroller.h.
|
private |
Definition at line 80 of file walletcontroller.h.
|
private |
Definition at line 86 of file walletcontroller.h.
|
mutableprivate |
Definition at line 84 of file walletcontroller.h.
|
private |
Definition at line 81 of file walletcontroller.h.
|
private |
Definition at line 83 of file walletcontroller.h.
|
private |
Definition at line 82 of file walletcontroller.h.
|
private |
Definition at line 85 of file walletcontroller.h.
1.8.14