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-02-21 18:03:38 +00:00
|
|
|
Controller(ModuleControllerDelegateInterface* delegate,
|
|
|
|
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);
|
2022-01-06 19:29:19 +00:00
|
|
|
|
|
|
|
private:
|
2022-02-21 18:03:38 +00:00
|
|
|
Accounts::ServiceInterface* m_accountsService;
|
|
|
|
ModuleControllerDelegateInterface* m_delegate;
|
2022-01-06 19:29:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Startup
|
2022-02-21 18:03:38 +00:00
|
|
|
} // namespace Modules
|