16#ifndef DISPLAYMANAGER_HPP
17#define DISPLAYMANAGER_HPP
20#include "ui_CarManager.h"
32 explicit DisplayManager(Ui::CarManager *ui, QObject *parent =
nullptr);
37 void updateSystemTime(
const QString ¤tDate,
const QString ¤tTime,
38 const QString ¤tDay);
DrivingMode
Enum class for the driving mode.
CarDirection
Enum class for the car direction.
ClusterTheme
Enum class for the cluster theme.
ClusterMetrics
Enum class for the cluster metrics.
void updateTemperature(const QString &temperature)
Updates the temperature on the display.
void updateDrivingMode(DrivingMode newMode)
Updates the driving mode on the display.
void updateClusterTheme(ClusterTheme newTheme)
Updates the cluster theme on the display.
void updateIpAddress(const QString &ipAddress)
Updates the IP address on the display.
void clusterMetricsToggled()
Signal emitted when the cluster metrics are toggled.
void clusterThemeToggled()
Signal emitted when the cluster theme is toggled.
void drivingModeToggled()
Signal emitted when the driving mode is toggled.
Ui::CarManager * m_ui
Pointer to the UI object.
void updateSystemTime(const QString ¤tDate, const QString ¤tTime, const QString ¤tDay)
Updates the system time on the display.
void updateBatteryPercentage(float batteryPercentage)
Updates the battery percentage on the display.
void updateCanBusData(float speed, int rpm)
Updates the CAN bus data on the display.
void updateClusterMetrics(ClusterMetrics newMetrics)
Updates the cluster metrics on the display.
void updateEngineData(CarDirection direction, int steeringAngle)
Updates the engine data on the display.
DisplayManager(Ui::CarManager *ui, QObject *parent=nullptr)
Construct a new DisplayManager object.
void updateMileage(double mileage)
Updates the mileage on the display.
void updateWifiStatus(const QString &status, const QString &wifiName)
Updates the WiFi status on the display.