104 QDateTime currentDateTime = QDateTime::currentDateTime();
105 emit
timeUpdated(currentDateTime.toString(
"dd-MM-yy"),
106 currentDateTime.toString(
"HH:mm"),
107 currentDateTime.toString(
"dddd"));
Definition of the BatteryController class.
Definition of the SystemCommandExecutor class.
Definition of the SystemInfoProvider class.
Definition of the SystemManager class.
Class that manages the battery of the vehicle.
Interface for managing the battery of the vehicle.
Interface for executing system commands and reading files.
Interface for providing system information to the display manager.
Class that executes system commands and reads files.
Class that provides system information to the display manager.
void ipAddressUpdated(const QString &ipAddress)
~SystemManager()
Destructor for the SystemManager class.
void batteryPercentageUpdated(float batteryPercentage)
void wifiStatusUpdated(const QString &status, const QString &wifiName)
ISystemCommandExecutor * m_systemCommandExecutor
void timeUpdated(const QString ¤tDate, const QString ¤tTime, const QString ¤tDay)
bool m_ownSystemCommandExecutor
bool m_ownSystemInfoProvider
void updateSystemStatus()
Updates the system status.
IBatteryController * m_batteryController
SystemManager(IBatteryController *batteryController=nullptr, ISystemInfoProvider *systemInfoProvider=nullptr, ISystemCommandExecutor *systemCommandExecutor=nullptr, QObject *parent=nullptr)
Constructor for the SystemManager class.
void shutdown()
Shuts down the SystemManager object.
ISystemInfoProvider * m_systemInfoProvider
void temperatureUpdated(const QString &temperature)
void updateTime()
Updates the current time.
bool m_ownBatteryController
void initialize()
Initializes the SystemManager object.