status-desktop/src-cpp/app/boot/app_controller.h

41 lines
971 B
C
Raw Normal View History

2022-01-06 19:29:19 +00:00
#pragma once
#include "accounts/service.h"
2022-01-20 14:48:57 +00:00
#include "../modules/main/module_access_interface.h"
#include "../modules/startup/module_access_interface.h"
2022-01-06 19:29:19 +00:00
#include "app_controller_delegate.h"
#include "app_service.h"
class AppController : public AppControllerDelegate
{
//statusFoundation: StatusFoundation
// Global
//localAppSettingsVariant: QVariant
//localAccountSettingsVariant: QVariant
//localAccountSensitiveSettingsVariant: QVariant
//userProfileVariant: QVariant
//globalUtilsVariant: QVariant
// Services
Accounts::Service* m_accountsService;
// Modules
Modules::Startup::ModuleAccessInterface* m_startupModule;
2022-01-20 14:48:57 +00:00
Modules::Main::ModuleAccessInterface* m_mainModule;
2022-01-06 19:29:19 +00:00
public:
AppController();
~AppController();
void start();
private:
void connect();
void startupDidLoad() override;
void mainDidLoad();
void load();
void userLoggedIn() override;
void buildAndRegisterLocalAccountSensitiveSettings();
void buildAndRegisterUserProfile();
};