mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-13 07:45:39 +00:00
42da8a2408
created skeleton for wallet_section added getAccounts api fixes #4750
40 lines
840 B
C++
40 lines
840 B
C++
#ifndef WALLET_ACCOUNT_CONTROLLER_H
|
|
#define WALLET_ACCOUNT_CONTROLLER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "wallet_accounts/wallet_account.h"
|
|
#include "wallet_accounts/service_interface.h"
|
|
#include "interfaces/controller_interface.h"
|
|
#include "signals.h"
|
|
|
|
namespace Modules
|
|
{
|
|
namespace Main
|
|
{
|
|
namespace Wallet
|
|
{
|
|
namespace Accounts
|
|
{
|
|
class Controller : public QObject, IAccountsController
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Controller(std::shared_ptr<Wallets::ServiceInterface> walletService, QObject* parent = nullptr);
|
|
~Controller() = default;
|
|
|
|
void init() override;
|
|
|
|
QList<Wallets::WalletAccountDto> getWalletAccounts();
|
|
|
|
private:
|
|
std::shared_ptr<Wallets::ServiceInterface> m_walletServicePtr;
|
|
};
|
|
} // namespace Accounts
|
|
} // namespace Wallet
|
|
} // namespace Main
|
|
} // namespace Modules
|
|
|
|
#endif // WALLET_ACCOUNT_CONTROLLER_H
|