2022-01-06 19:29:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../interfaces/module_onboarding_delegate_interface.h"
|
|
|
|
#include "accounts/generated_account.h"
|
|
|
|
#include "accounts/service_interface.h"
|
|
|
|
#include "controller.h"
|
|
|
|
#include "interfaces/module_controller_delegate_interface.h"
|
|
|
|
#include "interfaces/module_view_delegate_interface.h"
|
|
|
|
#include "module_access_interface.h"
|
|
|
|
#include "view.h"
|
|
|
|
#include <QVariant>
|
|
|
|
|
|
|
|
namespace Modules
|
|
|
|
{
|
|
|
|
namespace Startup
|
|
|
|
{
|
|
|
|
namespace Onboarding
|
|
|
|
{
|
|
|
|
class Module : public ModuleAccessInterface, ModuleControllerDelegateInterface, ModuleViewDelegateInterface
|
|
|
|
{
|
|
|
|
private:
|
2022-02-21 18:03:38 +00:00
|
|
|
Modules::Startup::ModuleOnboardingDelegateInterface* m_delegate;
|
|
|
|
View* m_view;
|
|
|
|
Controller* m_controller;
|
|
|
|
bool m_moduleLoaded;
|
2022-01-06 19:29:19 +00:00
|
|
|
|
|
|
|
public:
|
2022-02-21 18:03:38 +00:00
|
|
|
Module(Modules::Startup::ModuleOnboardingDelegateInterface* delegate, Accounts::ServiceInterface* accountsService);
|
|
|
|
~Module();
|
|
|
|
void load() override;
|
|
|
|
bool isLoaded() override;
|
|
|
|
void viewDidLoad() override;
|
|
|
|
void setSelectedAccountByIndex(int index) override;
|
|
|
|
void storeSelectedAccountAndLogin(QString password) override;
|
|
|
|
void setupAccountError() override;
|
|
|
|
Accounts::GeneratedAccountDto getImportedAccount() override;
|
|
|
|
QString validateMnemonic(QString mnemonic) override;
|
|
|
|
void importMnemonic(QString mnemonic) override;
|
|
|
|
void importAccountError() override;
|
|
|
|
void importAccountSuccess() override;
|
2022-01-06 19:29:19 +00:00
|
|
|
};
|
|
|
|
}; // namespace Onboarding
|
|
|
|
}; // namespace Startup
|
2022-02-21 18:03:38 +00:00
|
|
|
}; // namespace Modules
|