Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
ClusterSettingsManager Class Reference

Class that manages the cluster settings. More...

#include <ClusterSettingsManager.hpp>

Public Slots

void toggleDrivingMode ()
 Toggle the driving mode.
 
void toggleClusterTheme ()
 Toggle the cluster theme.
 
void toggleClusterMetrics ()
 Toggle the cluster metrics.
 

Signals

void drivingModeUpdated (DrivingMode newMode)
 
void clusterThemeUpdated (ClusterTheme newTheme)
 
void clusterMetricsUpdated (ClusterMetrics newMetrics)
 

Public Member Functions

 ClusterSettingsManager (QObject *parent=nullptr)
 Construct a new ClusterSettingsManager::ClusterSettingsManager object.
 
 ~ClusterSettingsManager ()
 Destroy the ClusterSettingsManager::ClusterSettingsManager object.
 

Private Member Functions

void setDrivingMode (DrivingMode newMode)
 Get the driving mode.
 
void setClusterTheme (ClusterTheme newTheme)
 Get the cluster theme.
 
void setClusterMetrics (ClusterMetrics newMetrics)
 Get the cluster metrics.
 

Private Attributes

DrivingMode m_drivingMode = DrivingMode::Manual
 
ClusterTheme m_clusterTheme = ClusterTheme::Dark
 
ClusterMetrics m_clusterMetrics = ClusterMetrics::Kilometers
 

Detailed Description

Class that manages the cluster settings.

Definition at line 26 of file ClusterSettingsManager.hpp.

Constructor & Destructor Documentation

◆ ClusterSettingsManager()

ClusterSettingsManager::ClusterSettingsManager ( QObject * parent = nullptr)
explicit

Construct a new ClusterSettingsManager::ClusterSettingsManager object.

Parameters
parentThe parent QObject.

This constructor initializes the ClusterSettingsManager object.

Definition at line 23 of file ClusterSettingsManager.cpp.

◆ ~ClusterSettingsManager()

ClusterSettingsManager::~ClusterSettingsManager ( )

Destroy the ClusterSettingsManager::ClusterSettingsManager object.

This destructor cleans up the resources used by the ClusterSettingsManager.

Definition at line 32 of file ClusterSettingsManager.cpp.

Member Function Documentation

◆ clusterMetricsUpdated

void ClusterSettingsManager::clusterMetricsUpdated ( ClusterMetrics newMetrics)
signal
Here is the caller graph for this function:

◆ clusterThemeUpdated

void ClusterSettingsManager::clusterThemeUpdated ( ClusterTheme newTheme)
signal
Here is the caller graph for this function:

◆ drivingModeUpdated

void ClusterSettingsManager::drivingModeUpdated ( DrivingMode newMode)
signal
Here is the caller graph for this function:

◆ setClusterMetrics()

void ClusterSettingsManager::setClusterMetrics ( ClusterMetrics newMetrics)
private

Get the cluster metrics.

Returns
The cluster metrics.

This function returns the current cluster metrics.

Definition at line 91 of file ClusterSettingsManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setClusterTheme()

void ClusterSettingsManager::setClusterTheme ( ClusterTheme newTheme)
private

Get the cluster theme.

Returns
The cluster theme.

This function returns the current cluster theme.

Definition at line 65 of file ClusterSettingsManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDrivingMode()

void ClusterSettingsManager::setDrivingMode ( DrivingMode newMode)
private

Get the driving mode.

Returns
The driving mode.

This function returns the current driving mode.

Definition at line 39 of file ClusterSettingsManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleClusterMetrics

void ClusterSettingsManager::toggleClusterMetrics ( )
slot

Toggle the cluster metrics.

This function toggles the cluster metrics between kilometers and miles.

Definition at line 103 of file ClusterSettingsManager.cpp.

Here is the call graph for this function:

◆ toggleClusterTheme

void ClusterSettingsManager::toggleClusterTheme ( )
slot

Toggle the cluster theme.

This function toggles the cluster theme between light and dark.

Definition at line 77 of file ClusterSettingsManager.cpp.

Here is the call graph for this function:

◆ toggleDrivingMode

void ClusterSettingsManager::toggleDrivingMode ( )
slot

Toggle the driving mode.

This function toggles the driving mode between manual and automatic.

Definition at line 51 of file ClusterSettingsManager.cpp.

Here is the call graph for this function:

Field Documentation

◆ m_clusterMetrics

ClusterMetrics ClusterSettingsManager::m_clusterMetrics = ClusterMetrics::Kilometers
private

Definition at line 47 of file ClusterSettingsManager.hpp.

◆ m_clusterTheme

ClusterTheme ClusterSettingsManager::m_clusterTheme = ClusterTheme::Dark
private

Definition at line 46 of file ClusterSettingsManager.hpp.

◆ m_drivingMode

DrivingMode ClusterSettingsManager::m_drivingMode = DrivingMode::Manual
private

Definition at line 45 of file ClusterSettingsManager.hpp.


The documentation for this class was generated from the following files: