mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Merge #15101: gui: Add WalletController
0dd9bdefagui: Refactor to use WalletController (João Barbosa)8fa271f08gui: Add WalletController (João Barbosa)cefb399e2gui: Use AutoConnection for WalletModel::unload signal (João Barbosa) Pull request description: This PR is a subset of the work done in the context of #13100. This change consists in extracting from the application class the code that manages the wallet models. The role of the `WalletController` instance is to coordinate wallet operations and the window. Tree-SHA512: 6a824054376730eb7d16c643dd2003f5f60778e8ad3af707b82bc12c48438db179ca4446316b28fb17b206f4b9aba8998419aab8c5dd1f7c32467015732b5094
This commit is contained in:
@@ -19,6 +19,7 @@ class NetworkStyle;
|
||||
class OptionsModel;
|
||||
class PaymentServer;
|
||||
class PlatformStyle;
|
||||
class WalletController;
|
||||
class WalletModel;
|
||||
|
||||
namespace interfaces {
|
||||
@@ -93,8 +94,6 @@ public Q_SLOTS:
|
||||
void shutdownResult();
|
||||
/// Handle runaway exceptions. Shows a message box with the problem and quits the program.
|
||||
void handleRunawayException(const QString &message);
|
||||
void addWallet(WalletModel* walletModel);
|
||||
void removeWallet();
|
||||
|
||||
Q_SIGNALS:
|
||||
void requestedInitialize();
|
||||
@@ -110,9 +109,8 @@ private:
|
||||
BitcoinGUI *window;
|
||||
QTimer *pollShutdownTimer;
|
||||
#ifdef ENABLE_WALLET
|
||||
PaymentServer* paymentServer;
|
||||
std::vector<WalletModel*> m_wallet_models;
|
||||
std::unique_ptr<interfaces::Handler> m_handler_load_wallet;
|
||||
PaymentServer* paymentServer{nullptr};
|
||||
WalletController* m_wallet_controller{nullptr};
|
||||
#endif
|
||||
int returnValue;
|
||||
const PlatformStyle *platformStyle;
|
||||
|
||||
Reference in New Issue
Block a user