Class that manages the system time, status, and battery. QObject.
More...
#include <SystemManager.hpp>
Class that manages the system time, status, and battery. QObject.
Definition at line 30 of file SystemManager.hpp.
◆ SystemManager()
◆ ~SystemManager()
SystemManager::~SystemManager |
( |
| ) |
|
◆ batteryPercentageUpdated
void SystemManager::batteryPercentageUpdated |
( |
float | batteryPercentage | ) |
|
|
signal |
◆ getStatusTimer()
QTimer & SystemManager::getStatusTimer |
( |
| ) |
|
|
inline |
◆ getTimeTimer()
QTimer & SystemManager::getTimeTimer |
( |
| ) |
|
|
inline |
◆ initialize()
void SystemManager::initialize |
( |
| ) |
|
Initializes the SystemManager object.
This method initializes the SystemManager object by starting two timers: one to update the time every second and another to update the system status every 5 seconds. It also calls updateSystemStatus() to update the system status immediately.
Definition at line 77 of file SystemManager.cpp.
◆ ipAddressUpdated
void SystemManager::ipAddressUpdated |
( |
const QString & | ipAddress | ) |
|
|
signal |
◆ shutdown()
void SystemManager::shutdown |
( |
| ) |
|
◆ temperatureUpdated
void SystemManager::temperatureUpdated |
( |
const QString & | temperature | ) |
|
|
signal |
◆ timeUpdated
void SystemManager::timeUpdated |
( |
const QString & | currentDate, |
|
|
const QString & | currentTime, |
|
|
const QString & | currentDay ) |
|
signal |
◆ updateSystemStatus
void SystemManager::updateSystemStatus |
( |
| ) |
|
|
slot |
Updates the system status.
This function updates the system status by calling the getters on the
SystemInfoProvider and BatteryController objects and emitting the corresponding signals. It does not block and is intended to be called regularly.
Definition at line 117 of file SystemManager.cpp.
◆ updateTime
void SystemManager::updateTime |
( |
| ) |
|
|
slot |
Updates the current time.
This function retrieves the current date and time and emits the timeUpdated signal with the formatted date, time, and weekday.
Definition at line 102 of file SystemManager.cpp.
◆ wifiStatusUpdated
void SystemManager::wifiStatusUpdated |
( |
const QString & | status, |
|
|
const QString & | wifiName ) |
|
signal |
◆ m_batteryController
◆ m_ownBatteryController
bool SystemManager::m_ownBatteryController |
|
private |
◆ m_ownSystemCommandExecutor
bool SystemManager::m_ownSystemCommandExecutor |
|
private |
◆ m_ownSystemInfoProvider
bool SystemManager::m_ownSystemInfoProvider |
|
private |
◆ m_statusTimer
QTimer SystemManager::m_statusTimer |
|
private |
◆ m_systemCommandExecutor
◆ m_systemInfoProvider
◆ m_timeTimer
QTimer SystemManager::m_timeTimer |
|
private |
The documentation for this class was generated from the following files: