Class that manages the display of the car manager. QObject.
More...
#include <DisplayManager.hpp>
|
Ui::CarManager * | m_ui |
| Pointer to the UI object.
|
|
Class that manages the display of the car manager. QObject.
Definition at line 28 of file DisplayManager.hpp.
◆ DisplayManager()
DisplayManager::DisplayManager |
( |
Ui::CarManager * | ui, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ clusterMetricsToggled
void DisplayManager::clusterMetricsToggled |
( |
| ) |
|
|
signal |
Signal emitted when the cluster metrics are toggled.
◆ clusterThemeToggled
void DisplayManager::clusterThemeToggled |
( |
| ) |
|
|
signal |
Signal emitted when the cluster theme is toggled.
◆ drivingModeToggled
void DisplayManager::drivingModeToggled |
( |
| ) |
|
|
signal |
Signal emitted when the driving mode is toggled.
◆ updateBatteryPercentage
void DisplayManager::updateBatteryPercentage |
( |
float | batteryPercentage | ) |
|
|
slot |
Updates the battery percentage on the display.
This function updates the battery percentage label and low battery warning based on the current battery percentage.
- Parameters
-
batteryPercentage | The current battery percentage. |
Definition at line 158 of file DisplayManager.cpp.
◆ updateCanBusData
void DisplayManager::updateCanBusData |
( |
float | speed, |
|
|
int | rpm ) |
|
slot |
Updates the CAN bus data on the display.
This function updates the speed and RPM labels based on the CAN bus data.
- Parameters
-
speed | The current speed of the car. |
rpm | The current RPM of the car. |
Definition at line 68 of file DisplayManager.cpp.
◆ updateClusterMetrics
void DisplayManager::updateClusterMetrics |
( |
ClusterMetrics | newMetrics | ) |
|
|
slot |
Updates the cluster metrics on the display.
This function updates the cluster metrics label and speed metrics label based on the current cluster metrics.
- Parameters
-
newMetrics | The new cluster metrics. |
Definition at line 231 of file DisplayManager.cpp.
◆ updateClusterTheme
void DisplayManager::updateClusterTheme |
( |
ClusterTheme | newTheme | ) |
|
|
slot |
Updates the cluster theme on the display.
This function updates the cluster theme label based on the current cluster theme.
- Parameters
-
newTheme | The new cluster theme. |
Definition at line 212 of file DisplayManager.cpp.
◆ updateDrivingMode
void DisplayManager::updateDrivingMode |
( |
DrivingMode | newMode | ) |
|
|
slot |
Updates the driving mode on the display.
This function updates the driving mode label based on the current driving mode.
- Parameters
-
newMode | The new driving mode. |
Definition at line 193 of file DisplayManager.cpp.
◆ updateEngineData
void DisplayManager::updateEngineData |
( |
CarDirection | direction, |
|
|
int | steeringAngle ) |
|
slot |
Updates the engine data on the display.
This function updates the direction label and blinker visibility based on the engine data.
- Parameters
-
direction | The current direction of the car. |
steeringAngle | The current steering angle of the car. |
Definition at line 81 of file DisplayManager.cpp.
◆ updateIpAddress
void DisplayManager::updateIpAddress |
( |
const QString & | ipAddress | ) |
|
|
slot |
Updates the IP address on the display.
This function updates the IP address label based on the current IP address.
- Parameters
-
ipAddress | The current IP address. |
Definition at line 183 of file DisplayManager.cpp.
◆ updateMileage
void DisplayManager::updateMileage |
( |
double | mileage | ) |
|
|
slot |
Updates the mileage on the display.
This function updates the mileage label based on the current mileage.
- Parameters
-
mileage | The current mileage. |
Definition at line 172 of file DisplayManager.cpp.
◆ updateSystemTime
void DisplayManager::updateSystemTime |
( |
const QString & | currentDate, |
|
|
const QString & | currentTime, |
|
|
const QString & | currentDay ) |
|
slot |
Updates the system time on the display.
This function updates the date, time, and weekday labels based on the current system time.
- Parameters
-
currentDate | The current date. |
currentTime | The current time. |
currentDay | The current day of the week. |
Definition at line 118 of file DisplayManager.cpp.
◆ updateTemperature
void DisplayManager::updateTemperature |
( |
const QString & | temperature | ) |
|
|
slot |
Updates the temperature on the display.
This function updates the temperature label based on the current temperature.
- Parameters
-
temperature | The current temperature. |
Definition at line 148 of file DisplayManager.cpp.
◆ updateWifiStatus
void DisplayManager::updateWifiStatus |
( |
const QString & | status, |
|
|
const QString & | wifiName ) |
|
slot |
Updates the WiFi status on the display.
This function updates the WiFi status label based on the current WiFi status and name.
- Parameters
-
status | The current WiFi status. |
wifiName | The name of the connected WiFi network. |
Definition at line 133 of file DisplayManager.cpp.
◆ m_ui
Ui::CarManager* DisplayManager::m_ui |
|
private |
The documentation for this class was generated from the following files: