2021-03-21 21:29:31 +00:00
|
|
|
#ifndef SYSTEM_H_
|
|
|
|
#define SYSTEM_H_
|
|
|
|
|
2022-03-19 17:44:03 +00:00
|
|
|
#include <logger.h>
|
2021-03-21 21:29:31 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "TaskManager.h"
|
|
|
|
#include <BoardFinder.h>
|
|
|
|
#include <Display.h>
|
|
|
|
#include <configuration.h>
|
|
|
|
|
|
|
|
class System {
|
|
|
|
public:
|
2021-05-18 22:44:37 +00:00
|
|
|
System();
|
2021-03-21 21:29:31 +00:00
|
|
|
~System();
|
|
|
|
|
2021-05-18 22:44:37 +00:00
|
|
|
void setBoardConfig(BoardConfig const *const boardConfig);
|
|
|
|
void setUserConfig(Configuration const *const userConfig);
|
|
|
|
|
|
|
|
BoardConfig const *const getBoardConfig() const;
|
|
|
|
Configuration const *const getUserConfig() const;
|
2023-02-10 21:08:54 +00:00
|
|
|
TaskManager &getTaskManager();
|
|
|
|
Display &getDisplay();
|
2022-06-28 19:26:53 +00:00
|
|
|
bool isWifiOrEthConnected() const;
|
|
|
|
void connectedViaEth(bool status);
|
|
|
|
void connectedViaWifi(bool status);
|
2023-02-10 21:08:54 +00:00
|
|
|
logging::Logger &getLogger();
|
2021-03-21 21:29:31 +00:00
|
|
|
|
|
|
|
private:
|
2023-02-10 21:08:54 +00:00
|
|
|
BoardConfig const *_boardConfig;
|
2021-05-18 22:44:37 +00:00
|
|
|
Configuration const *_userConfig;
|
|
|
|
TaskManager _taskManager;
|
|
|
|
Display _display;
|
2022-06-28 20:41:11 +00:00
|
|
|
bool _isEthConnected;
|
2022-06-28 20:00:48 +00:00
|
|
|
bool _isWifiConnected;
|
2022-03-19 17:44:03 +00:00
|
|
|
logging::Logger _logger;
|
2021-03-21 21:29:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|