2022-01-06 19:29:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "accounts/service_interface.h"
|
|
|
|
#include "controller_interface.h"
|
|
|
|
#include "interfaces/module_controller_delegate_interface.h"
|
|
|
|
#include "signals.h"
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
namespace Modules
|
|
|
|
{
|
|
|
|
namespace Startup
|
|
|
|
{
|
|
|
|
|
|
|
|
class Controller : public QObject, ControllerInterface
|
|
|
|
{
|
|
|
|
public:
|
2022-01-20 15:50:10 +00:00
|
|
|
Controller(ModuleControllerDelegateInterface* delegate,
|
2022-01-06 19:29:19 +00:00
|
|
|
Accounts::ServiceInterface* accountsService,
|
|
|
|
QObject* parent = nullptr);
|
|
|
|
void init() override;
|
|
|
|
bool shouldStartWithOnboardingScreen() override;
|
|
|
|
void onLogin(Signals::NodeSignal signal);
|
|
|
|
void onNodeStopped(Signals::NodeSignal signal);
|
|
|
|
void onNodeReady(Signals::NodeSignal signal);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Accounts::ServiceInterface* m_accountsService;
|
|
|
|
ModuleControllerDelegateInterface* m_delegate;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Startup
|
|
|
|
} // namespace Modules
|