Bitcoin ABC 0.26.3
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 (interfaces::Wallet &wallet, SendCoinsRecipient recipient, QByteArray transaction) |
Public Member Functions | |
WalletController (ClientModel &client_model, const PlatformStyle *platform_style, QObject *parent) | |
~WalletController () | |
std::vector< WalletModel * > | getOpenWallets () const |
Returns wallet models currently open. | |
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. | |
void | closeWallet (WalletModel *wallet_model, QWidget *parent=nullptr) |
void | closeAllWallets (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 |
Controller between interfaces::Node, WalletModel instances and the GUI.
Definition at line 48 of file walletcontroller.h.
WalletController::WalletController | ( | ClientModel & | client_model, |
const PlatformStyle * | platform_style, | ||
QObject * | parent | ||
) |
WalletController::~WalletController | ( | ) |
Definition at line 52 of file walletcontroller.cpp.
Definition at line 98 of file walletcontroller.cpp.
void WalletController::closeWallet | ( | WalletModel * | wallet_model, |
QWidget * | parent = nullptr |
||
) |
Definition at line 78 of file walletcontroller.cpp.
|
signal |
std::vector< WalletModel * > WalletController::getOpenWallets | ( | ) | const |
Returns wallet models currently open.
Definition at line 58 of file walletcontroller.cpp.
WalletModel * WalletController::getOrCreateWallet | ( | std::unique_ptr< interfaces::Wallet > | wallet | ) |
Definition at line 116 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 63 of file walletcontroller.cpp.
|
private |
Definition at line 176 of file walletcontroller.cpp.
|
signal |
|
signal |
|
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.