2021-03-21 21:29:31 +00:00
|
|
|
|
|
|
|
#include "System.h"
|
|
|
|
|
2021-04-09 21:14:47 +00:00
|
|
|
System::System(std::shared_ptr<BoardConfig> boardConfig, std::shared_ptr<Configuration> userConfig) : _boardConfig(boardConfig), _userConfig(userConfig), _isWifiEthConnected(false) {
|
2021-03-21 21:29:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
System::~System() {
|
|
|
|
}
|
|
|
|
|
|
|
|
std::shared_ptr<BoardConfig> System::getBoardConfig() const {
|
|
|
|
return _boardConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::shared_ptr<Configuration> System::getUserConfig() const {
|
|
|
|
return _userConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
TaskManager &System::getTaskManager() {
|
|
|
|
return _taskManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
Display &System::getDisplay() {
|
|
|
|
return _display;
|
|
|
|
}
|
2021-03-27 21:02:43 +00:00
|
|
|
|
|
|
|
bool System::isWifiEthConnected() const {
|
|
|
|
return _isWifiEthConnected;
|
|
|
|
}
|
|
|
|
|
|
|
|
void System::connectedViaWifiEth(bool status) {
|
|
|
|
_isWifiEthConnected = status;
|
|
|
|
}
|