2022-01-06 19:29:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "accounts/generated_account.h"
|
|
|
|
|
|
|
|
namespace Modules
|
|
|
|
{
|
|
|
|
namespace Startup
|
|
|
|
{
|
|
|
|
namespace Onboarding
|
|
|
|
{
|
|
|
|
|
|
|
|
// Abstract class for any input/interaction with this module.
|
|
|
|
|
|
|
|
class ControllerInterface
|
|
|
|
{
|
|
|
|
public:
|
2022-02-21 18:03:38 +00:00
|
|
|
virtual void init() = 0;
|
|
|
|
|
|
|
|
virtual QVector<Accounts::GeneratedAccountDto> getGeneratedAccounts() = 0;
|
|
|
|
|
|
|
|
virtual void setSelectedAccountByIndex(int index) = 0;
|
|
|
|
|
|
|
|
virtual void storeSelectedAccountAndLogin(QString password) = 0;
|
|
|
|
|
|
|
|
virtual Accounts::GeneratedAccountDto getImportedAccount() = 0;
|
|
|
|
|
|
|
|
virtual QString validateMnemonic(QString mnemonic) = 0;
|
|
|
|
|
|
|
|
virtual void importMnemonic(QString mnemonic) = 0;
|
2022-01-06 19:29:19 +00:00
|
|
|
};
|
|
|
|
} // namespace Onboarding
|
|
|
|
} // namespace Startup
|
|
|
|
} // namespace Modules
|