2022-02-14 14:38:41 +00:00
|
|
|
#ifndef WALLET_ACCOUNT_MODULE_H
|
|
|
|
#define WALLET_ACCOUNT_MODULE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "wallet_accounts/service_interface.h"
|
|
|
|
#include "interfaces/module_access_interface.h"
|
|
|
|
#include "controller.h"
|
|
|
|
#include "view.h"
|
|
|
|
|
2022-02-16 21:51:04 +00:00
|
|
|
namespace Modules::Main::Wallet::Accounts
|
2022-02-14 14:38:41 +00:00
|
|
|
{
|
2022-02-16 21:51:04 +00:00
|
|
|
class Module : public QObject, virtual public IModuleAccess
|
2022-02-14 14:38:41 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2022-02-16 21:51:04 +00:00
|
|
|
Q_INTERFACES(Modules::Main::IModuleAccess)
|
|
|
|
|
2022-02-14 14:38:41 +00:00
|
|
|
private:
|
2022-02-16 21:51:04 +00:00
|
|
|
View* m_viewPtr;
|
|
|
|
Controller* m_controllerPtr;
|
2022-02-14 14:38:41 +00:00
|
|
|
|
|
|
|
bool m_moduleLoaded;
|
|
|
|
|
|
|
|
void connect();
|
|
|
|
void refreshWalletAccounts();
|
|
|
|
public:
|
2022-02-16 21:51:04 +00:00
|
|
|
explicit Module(std::shared_ptr<Wallets::ServiceInterface> walletsService, QObject* parent);
|
2022-02-14 14:38:41 +00:00
|
|
|
~Module() = default;
|
|
|
|
|
|
|
|
void load() override;
|
|
|
|
bool isLoaded() override;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void viewDidLoad();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void loaded() override;
|
|
|
|
};
|
2022-02-16 21:51:04 +00:00
|
|
|
} // namespace Modules::Main::Wallet::Accounts
|
2022-02-14 14:38:41 +00:00
|
|
|
|
|
|
|
#endif // WALLET_ACCOUNT_MODULE_H
|