Class that provides system information to the display manager. More...
#include <SystemInfoProvider.hpp>
Public Member Functions | |
SystemInfoProvider (ISystemCommandExecutor *executor=nullptr) | |
Constructor for the SystemInfoProvider class. | |
~SystemInfoProvider () override | |
Destructor for the SystemInfoProvider class. | |
QString | getWifiStatus (QString &wifiName) const override |
Gets the current WiFi status. | |
QString | getTemperature () const override |
Gets the current temperature in degrees Celsius. | |
QString | getIpAddress () const override |
Gets the current IP address of the WiFi interface. | |
![]() | |
virtual | ~ISystemInfoProvider ()=default |
Private Attributes | |
ISystemCommandExecutor * | m_executor |
bool | m_ownExecutor |
Class that provides system information to the display manager.
Definition at line 26 of file SystemInfoProvider.hpp.
|
explicit |
Constructor for the SystemInfoProvider class.
Allocates a SystemCommandExecutor if the one provided is nullptr.
executor | The executor to use. If nullptr, a new SystemCommandExecutor is allocated. |
Definition at line 25 of file SystemInfoProvider.cpp.
|
override |
Destructor for the SystemInfoProvider class.
Deletes the executor if it was allocated by the SystemInfoProvider.
Definition at line 34 of file SystemInfoProvider.cpp.
|
overridevirtual |
Gets the current IP address of the WiFi interface.
Implements ISystemInfoProvider.
Definition at line 87 of file SystemInfoProvider.cpp.
|
overridevirtual |
Gets the current temperature in degrees Celsius.
Implements ISystemInfoProvider.
Definition at line 73 of file SystemInfoProvider.cpp.
|
overridevirtual |
Gets the current WiFi status.
wifiName | The name of the WiFi network we are connected to, or an empty string if not connected. |
Implements ISystemInfoProvider.
Definition at line 49 of file SystemInfoProvider.cpp.
|
private |
Definition at line 37 of file SystemInfoProvider.hpp.
|
private |
Definition at line 38 of file SystemInfoProvider.hpp.