Bitcoin Core 28.99.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, std::pair< bool, std::string > > | 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) |
Private Member Functions | |
void | removeAndDeleteWallet (WalletModel *wallet_model) |
void | removeWallet (WalletModel *wallet_model) |
Starts the wallet closure procedure. More... | |
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 61 of file walletcontroller.cpp.
void WalletController::closeAllWallets | ( | QWidget * | parent = nullptr | ) |
Definition at line 103 of file walletcontroller.cpp.
void WalletController::closeWallet | ( | WalletModel * | wallet_model, |
QWidget * | parent = nullptr |
||
) |
Definition at line 90 of file walletcontroller.cpp.
|
signal |
WalletModel * WalletController::getOrCreateWallet | ( | std::unique_ptr< interfaces::Wallet > | wallet | ) |
Definition at line 117 of file walletcontroller.cpp.
std::map< std::string, std::pair< bool, std::string > > WalletController::listWalletDir | ( | ) | const |
Returns all wallet names in the wallet dir mapped to whether the wallet is loaded.
Definition at line 68 of file walletcontroller.cpp.
|
private |
|
private |
Starts the wallet closure procedure.
Definition at line 82 of file walletcontroller.cpp.
|
signal |
|
signal |
|
friend |
Definition at line 87 of file walletcontroller.h.
|
friend |
Definition at line 86 of file walletcontroller.h.
|
private |
Definition at line 76 of file walletcontroller.h.
|
private |
Definition at line 77 of file walletcontroller.h.
|
private |
Definition at line 78 of file walletcontroller.h.
|
private |
Definition at line 84 of file walletcontroller.h.
|
mutableprivate |
Definition at line 82 of file walletcontroller.h.
|
private |
Definition at line 79 of file walletcontroller.h.
|
private |
Definition at line 81 of file walletcontroller.h.
|
private |
Definition at line 80 of file walletcontroller.h.
|
private |
Definition at line 83 of file walletcontroller.h.