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

Class that manages the data received from the car's systems. QObject. More...

#include <SystemDataManager.hpp>

Public Slots

void handleTimeData (const QString &currentDate, const QString &currentTime, const QString &currentDay)
 Handle Time data.
 
void handleWifiData (const QString &status, const QString &wifiName)
 Handle WiFi data.
 
void handleTemperatureData (const QString &temperature)
 Handle Temperature data.
 
void handleIpAddressData (const QString &ipAddress)
 Handle IP Address data.
 
void handleBatteryPercentage (float batteryPercentage)
 Handle Battery Percentage data.
 

Signals

void systemTimeUpdated (const QString &currentDate, const QString &currentTime, const QString &currentDay)
 
void systemWifiUpdated (const QString &status, const QString &wifiName)
 
void systemTemperatureUpdated (const QString &temperature)
 
void ipAddressUpdated (const QString &ipAddress)
 
void batteryPercentageUpdated (float batteryPercentage)
 

Public Member Functions

 SystemDataManager (QObject *parent=nullptr)
 
 ~SystemDataManager ()
 

Private Attributes

QString m_time = ""
 
QString m_wifiName = ""
 
QString m_wifiStatus = ""
 
QString m_temperature = ""
 
QString m_ipAddress = ""
 
float m_batteryPercentage = -1.0f
 

Detailed Description

Class that manages the data received from the car's systems. QObject.

Definition at line 26 of file SystemDataManager.hpp.

Constructor & Destructor Documentation

◆ SystemDataManager()

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

Definition at line 18 of file SystemDataManager.cpp.

◆ ~SystemDataManager()

SystemDataManager::~SystemDataManager ( )

Definition at line 22 of file SystemDataManager.cpp.

Member Function Documentation

◆ batteryPercentageUpdated

void SystemDataManager::batteryPercentageUpdated ( float batteryPercentage)
signal
Here is the caller graph for this function:

◆ handleBatteryPercentage

void SystemDataManager::handleBatteryPercentage ( float batteryPercentage)
slot

Handle Battery Percentage data.

Parameters
batteryPercentageThe battery percentage.

This function processes the battery percentage data.

Definition at line 85 of file SystemDataManager.cpp.

Here is the call graph for this function:

◆ handleIpAddressData

void SystemDataManager::handleIpAddressData ( const QString & ipAddress)
slot

Handle IP Address data.

Parameters
ipAddressThe IP address.

This function processes the IP address data.

Definition at line 72 of file SystemDataManager.cpp.

Here is the call graph for this function:

◆ handleTemperatureData

void SystemDataManager::handleTemperatureData ( const QString & temperature)
slot

Handle Temperature data.

Parameters
temperatureThe temperature data.

This function processes the temperature data.

Definition at line 59 of file SystemDataManager.cpp.

Here is the call graph for this function:

◆ handleTimeData

void SystemDataManager::handleTimeData ( const QString & currentDate,
const QString & currentTime,
const QString & currentDay )
slot

Handle Time data.

Parameters
currentDateThe current date.
currentTimeThe current time.
currentDayThe current day.

This function processes the time data.

Definition at line 31 of file SystemDataManager.cpp.

Here is the call graph for this function:

◆ handleWifiData

void SystemDataManager::handleWifiData ( const QString & status,
const QString & wifiName )
slot

Handle WiFi data.

Parameters
statusThe WiFi status.
wifiNameThe WiFi name.

This function processes the WiFi data.

Definition at line 45 of file SystemDataManager.cpp.

Here is the call graph for this function:

◆ ipAddressUpdated

void SystemDataManager::ipAddressUpdated ( const QString & ipAddress)
signal
Here is the caller graph for this function:

◆ systemTemperatureUpdated

void SystemDataManager::systemTemperatureUpdated ( const QString & temperature)
signal
Here is the caller graph for this function:

◆ systemTimeUpdated

void SystemDataManager::systemTimeUpdated ( const QString & currentDate,
const QString & currentTime,
const QString & currentDay )
signal
Here is the caller graph for this function:

◆ systemWifiUpdated

void SystemDataManager::systemWifiUpdated ( const QString & status,
const QString & wifiName )
signal
Here is the caller graph for this function:

Field Documentation

◆ m_batteryPercentage

float SystemDataManager::m_batteryPercentage = -1.0f
private

Definition at line 58 of file SystemDataManager.hpp.

◆ m_ipAddress

QString SystemDataManager::m_ipAddress = ""
private

Definition at line 57 of file SystemDataManager.hpp.

◆ m_temperature

QString SystemDataManager::m_temperature = ""
private

Definition at line 56 of file SystemDataManager.hpp.

◆ m_time

QString SystemDataManager::m_time = ""
private

Definition at line 53 of file SystemDataManager.hpp.

◆ m_wifiName

QString SystemDataManager::m_wifiName = ""
private

Definition at line 54 of file SystemDataManager.hpp.

◆ m_wifiStatus

QString SystemDataManager::m_wifiStatus = ""
private

Definition at line 55 of file SystemDataManager.hpp.


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