2021-03-21 21:29:31 +00:00
|
|
|
#ifndef SYSTEM_H_
|
|
|
|
#define SYSTEM_H_
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "TaskManager.h"
|
|
|
|
#include <BoardFinder.h>
|
|
|
|
#include <Display.h>
|
|
|
|
#include <configuration.h>
|
|
|
|
|
|
|
|
class System {
|
|
|
|
public:
|
|
|
|
System(std::shared_ptr<BoardConfig> boardConfig, std::shared_ptr<Configuration> userConfig);
|
|
|
|
~System();
|
|
|
|
|
|
|
|
std::shared_ptr<BoardConfig> getBoardConfig() const;
|
|
|
|
std::shared_ptr<Configuration> getUserConfig() const;
|
|
|
|
TaskManager & getTaskManager();
|
|
|
|
Display & getDisplay();
|
2021-03-27 21:02:43 +00:00
|
|
|
bool isWifiEthConnected() const;
|
|
|
|
void connectedViaWifiEth(bool status);
|
2021-03-21 21:29:31 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr<BoardConfig> _boardConfig;
|
|
|
|
std::shared_ptr<Configuration> _userConfig;
|
|
|
|
TaskManager _taskManager;
|
|
|
|
Display _display;
|
2021-03-27 21:02:43 +00:00
|
|
|
bool _isWifiEthConnected;
|
2021-03-21 21:29:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|