QIfClimateControl Class

Provides an interface to the climate control. More...

Header: #include <QIfClimateControl>
qmake: QT += ifvehiclefunctions
Instantiated By: ClimateControl
Inherits: QIfAbstractZonedFeature

Properties

Public Functions

QIfClimateControl(const QString &zone = QString(), QObject *parent = nullptr)
QtIfVehicleFunctions::AirflowDirections airflowDirections() const
int automaticClimateFanIntensityLevel() const
QtIfVehicleFunctions::ClimateMode climateMode() const
int fanSpeedLevel() const
bool isAirConditioningEnabled() const
bool isDefrostEnabled() const
bool isHeaterEnabled() const
bool isRecirculationEnabled() const
bool isZoneSynchronizationEnabled() const
int outsideTemperature() const
QString outsideTemperatureLabel() const
QtIfVehicleFunctions::RecirculationMode recirculationMode() const
int recirculationSensitivityLevel() const
int seatCooler() const
int seatHeater() const
int steeringWheelHeater() const
qreal targetTemperature() const

Public Slots

void setAirConditioningEnabled(bool airConditioningEnabled)
void setAirflowDirections(QtIfVehicleFunctions::AirflowDirections airflowDirections)
void setAutomaticClimateFanIntensityLevel(int automaticClimateFanIntensityLevel)
void setClimateMode(QtIfVehicleFunctions::ClimateMode climateMode)
void setDefrostEnabled(bool defrostEnabled)
void setFanSpeedLevel(int fanSpeedLevel)
void setHeaterEnabled(bool heaterEnabled)
void setOutsideTemperature(int outsideTemperature)
void setOutsideTemperatureLabel(const QString &outsideTemperatureLabel)
void setRecirculationEnabled(bool recirculationEnabled)
void setRecirculationMode(QtIfVehicleFunctions::RecirculationMode recirculationMode)
void setRecirculationSensitivityLevel(int recirculationSensitivityLevel)
void setSeatCooler(int seatCooler)
void setSeatHeater(int seatHeater)
void setSteeringWheelHeater(int steeringWheelHeater)
void setTargetTemperature(qreal targetTemperature)
void setZoneSynchronizationEnabled(bool zoneSynchronizationEnabled)

Signals

void airConditioningEnabledChanged(bool airConditioningEnabled)
void airflowDirectionsChanged(QtIfVehicleFunctions::AirflowDirections airflowDirections)
void automaticClimateFanIntensityLevelChanged(int automaticClimateFanIntensityLevel)
void climateModeChanged(QtIfVehicleFunctions::ClimateMode climateMode)
void defrostEnabledChanged(bool defrostEnabled)
void fanSpeedLevelChanged(int fanSpeedLevel)
void heaterEnabledChanged(bool heaterEnabled)
void outsideTemperatureChanged(int outsideTemperature)
void outsideTemperatureLabelChanged(const QString &outsideTemperatureLabel)
void recirculationEnabledChanged(bool recirculationEnabled)
void recirculationModeChanged(QtIfVehicleFunctions::RecirculationMode recirculationMode)
void recirculationSensitivityLevelChanged(int recirculationSensitivityLevel)
void seatCoolerChanged(int seatCooler)
void seatHeaterChanged(int seatHeater)
void steeringWheelHeaterChanged(int steeringWheelHeater)
void targetTemperatureChanged(qreal targetTemperature)
void zoneSynchronizationEnabledChanged(bool zoneSynchronizationEnabled)

Detailed Description

The QIfClimateControl provides an interface to the climate control of the vehicle.

The climate control properties are divided into two categories: central or zoned. The central properties are exposed directly through the QIfClimateControl and the zoned properties are exposed through zone objects. The zones are retrieved using the zoneAt method.

The QIfClimateControl expects a single backend to be available. It is recommended to use it with discoveryMode set to AutoDiscovery.

Property Documentation

airConditioningEnabled : bool

Holds whether the air conditioning is enabled.

Access functions:

bool isAirConditioningEnabled() const
void setAirConditioningEnabled(bool airConditioningEnabled)

Notifier signal:

void airConditioningEnabledChanged(bool airConditioningEnabled)

airflowDirections : QtIfVehicleFunctions::AirflowDirections

Holds the combination of flags indicating the areas where airflow is on.

Access functions:

QtIfVehicleFunctions::AirflowDirections airflowDirections() const
void setAirflowDirections(QtIfVehicleFunctions::AirflowDirections airflowDirections)

Notifier signal:

void airflowDirectionsChanged(QtIfVehicleFunctions::AirflowDirections airflowDirections)

automaticClimateFanIntensityLevel : int

Holds the intensity level of the fan when the climateMode is set to AutoClimate.

Access functions:

int automaticClimateFanIntensityLevel() const
void setAutomaticClimateFanIntensityLevel(int automaticClimateFanIntensityLevel)

Notifier signal:

void automaticClimateFanIntensityLevelChanged(int automaticClimateFanIntensityLevel)

climateMode : QtIfVehicleFunctions::ClimateMode

value holds the climate mode

Access functions:

QtIfVehicleFunctions::ClimateMode climateMode() const
void setClimateMode(QtIfVehicleFunctions::ClimateMode climateMode)

Notifier signal:

void climateModeChanged(QtIfVehicleFunctions::ClimateMode climateMode)

defrostEnabled : bool

Indicates whether the defrost mode is enabled. Usually that means that the fans are on the highest level to remove ice from the windshield.

Access functions:

bool isDefrostEnabled() const
void setDefrostEnabled(bool defrostEnabled)

Notifier signal:

void defrostEnabledChanged(bool defrostEnabled)

fanSpeedLevel : int

Holds the fan speed level

Access functions:

int fanSpeedLevel() const
void setFanSpeedLevel(int fanSpeedLevel)

Notifier signal:

void fanSpeedLevelChanged(int fanSpeedLevel)

heaterEnabled : bool

Indicates whether the heater is enabled.

Access functions:

bool isHeaterEnabled() const
void setHeaterEnabled(bool heaterEnabled)

Notifier signal:

void heaterEnabledChanged(bool heaterEnabled)

outsideTemperature : int

Holds the outside temperature of the zone expressed in centigrades

Access functions:

int outsideTemperature() const
void setOutsideTemperature(int outsideTemperature)

Notifier signal:

void outsideTemperatureChanged(int outsideTemperature)

outsideTemperatureLabel : QString

The outside temperature expressed as a string, e.g. "mild"

Access functions:

QString outsideTemperatureLabel() const
void setOutsideTemperatureLabel(const QString &outsideTemperatureLabel)

Notifier signal:

void outsideTemperatureLabelChanged(const QString &outsideTemperatureLabel)

recirculationEnabled : bool

Indicates whether the recirculation is currently running.

Access functions:

bool isRecirculationEnabled() const
void setRecirculationEnabled(bool recirculationEnabled)

Notifier signal:

void recirculationEnabledChanged(bool recirculationEnabled)

recirculationMode : QtIfVehicleFunctions::RecirculationMode

Holds the current recirculation mode

Access functions:

QtIfVehicleFunctions::RecirculationMode recirculationMode() const
void setRecirculationMode(QtIfVehicleFunctions::RecirculationMode recirculationMode)

Notifier signal:

void recirculationModeChanged(QtIfVehicleFunctions::RecirculationMode recirculationMode)

recirculationSensitivityLevel : int

Holds the sensitivity level of the recirculation system when the recirculationMode is set to AutoRecirculation.

Access functions:

int recirculationSensitivityLevel() const
void setRecirculationSensitivityLevel(int recirculationSensitivityLevel)

Notifier signal:

void recirculationSensitivityLevelChanged(int recirculationSensitivityLevel)

seatCooler : int

Holds the seat cooler level

Access functions:

int seatCooler() const
void setSeatCooler(int seatCooler)

Notifier signal:

void seatCoolerChanged(int seatCooler)

seatHeater : int

Holds the seat heater level

Access functions:

int seatHeater() const
void setSeatHeater(int seatHeater)

Notifier signal:

void seatHeaterChanged(int seatHeater)

steeringWheelHeater : int

Holds the steering wheel heater level

Access functions:

int steeringWheelHeater() const
void setSteeringWheelHeater(int steeringWheelHeater)

Notifier signal:

void steeringWheelHeaterChanged(int steeringWheelHeater)

targetTemperature : qreal

Holds the target temperature of the zone expressed in centigrades

Access functions:

qreal targetTemperature() const
void setTargetTemperature(qreal targetTemperature)

Notifier signal:

void targetTemperatureChanged(qreal targetTemperature)

zoneSynchronizationEnabled : bool

Indicates whether the zone synchronization is enabled.

Which zones and properties are synchronized is controlled by the backend implementing it.

Access functions:

bool isZoneSynchronizationEnabled() const
void setZoneSynchronizationEnabled(bool zoneSynchronizationEnabled)

Notifier signal:

void zoneSynchronizationEnabledChanged(bool zoneSynchronizationEnabled)

Member Function Documentation

QIfClimateControl::QIfClimateControl(const QString &zone = QString(), QObject *parent = nullptr)

Default constructs an instance of QIfClimateControl to the given zone.

If zone is not provided the General zone will be created.

The parent argument is passed on to the QIfAbstractZonedFeature base class.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.