ClimateControl QML Type
Provides an interface to the climate control. More...
Import Statement: | import QtInterfaceFramework.VehicleFunctions 1.0 |
Instantiates: | QIfClimateControl |
Inherits: |
Properties
- airConditioningEnabled : bool
- airflowDirections : QtIfVehicleFunctions::AirflowDirections
- automaticClimateFanIntensityLevel : int
- climateMode : QtIfVehicleFunctions::ClimateMode
- defrostEnabled : bool
- discoveryMode : enumeration
- discoveryResult : enumeration
- fanSpeedLevel : int
- heaterEnabled : bool
- isInitialized : bool
- isValid : bool
- outsideTemperature : int
- outsideTemperatureLabel : QString
- recirculationEnabled : bool
- recirculationMode : QtIfVehicleFunctions::RecirculationMode
- recirculationSensitivityLevel : int
- seatCooler : int
- seatHeater : int
- serviceObject : ServiceObject
- steeringWheelHeater : int
- targetTemperature : qreal
- zoneSynchronizationEnabled : bool
Methods
- enumeration startAutoDiscovery()
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.
airflowDirections : QtIfVehicleFunctions::AirflowDirections |
Holds the combination of flags indicating the areas where airflow is on.
Available values are:
Constant | Description |
---|---|
Windshield | Direct airflow along the windshield. |
Dashboard | Direct airflow through the dashboard. |
Floor | Direct airflow to the floor. |
automaticClimateFanIntensityLevel : int |
Holds the intensity level of the fan when the climateMode is set to AutoClimate.
climateMode : QtIfVehicleFunctions::ClimateMode |
value holds the climate mode
Available values are:
Constant | Description |
---|---|
ClimateOff | The climate system is turned off. |
ClimateOn | The climate system is turned on. |
AutoClimate | The climate system is in automatic mode and is adjusting some parts of the system automatically. E.g. lower the fan speed when the targetTemperature is reached. |
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.
discoveryMode : enumeration |
Holds the mode that is used for the autoDiscovery
Available values are:
Constant | Description |
---|---|
NoAutoDiscovery | No auto discovery is done and the ServiceObject needs to be set manually. |
AutoDiscovery | Tries to find a production backend with a matching interface and falls back to a simulation backend if not found. |
LoadOnlyProductionBackends | Only tries to load a production backend with a matching interface. |
LoadOnlySimulationBackends | Only tries to load a simulation backend with a matching interface. |
If necessary, auto discovery is started once the feature creation is completed.
Note: If you change this property after the feature is instantiated, make sure to call startAutoDiscovery() to search for a new service object.
discoveryResult : enumeration |
The result of the last autoDiscovery
Available values are:
Constant | Description |
---|---|
NoResult | Indicates that no auto discovery was started because the feature has already assigned a valid ServiceObject. |
ErrorWhileLoading | An error has happened while searching for a backend with a matching interface. |
ProductionBackendLoaded | A production backend was loaded, as a result of auto discovery. |
SimulationBackendLoaded | A simulation backend was loaded, as a result of auto discovery.s |
fanSpeedLevel : int |
Holds the fan speed level
heaterEnabled : bool |
Indicates whether the heater is enabled.
isInitialized : bool |
Indicates whether the feature has been initialized with all the values from the backend.
The property is true
once the backend sends the QIfFeatureInterface::initializationDone signal to indicate that all values have now been initialized with values from the backend.
See also isValid and QIfFeatureInterface::initializationDone.
isValid : bool |
Indicates whether the feature is ready for use.
The property is true
if the feature is ready to be used, otherwise false
. Not being ready usually indicates that no suitable service object could be found, or that automatic discovery has not been triggered.
The backend still might not have sent all properties yet and is not fully initialized. Use isInitialized instead to know when the feature holds all correct values.
See also QIfServiceObject, discoveryMode, and isInitialized.
outsideTemperature : int |
Holds the outside temperature of the zone expressed in centigrades
outsideTemperatureLabel : QString |
The outside temperature expressed as a string, e.g. "mild"
recirculationEnabled : bool |
Indicates whether the recirculation is currently running.
recirculationMode : QtIfVehicleFunctions::RecirculationMode |
Holds the current recirculation mode
Available values are:
Constant | Description |
---|---|
RecirculationOff | The recirculation is turned off. |
RecirculationOn | The recirculation is turned on. |
AutoRecirculation | The recirculation is turning off and on automatically depending on the air quality. |
recirculationSensitivityLevel : int |
Holds the sensitivity level of the recirculation system when the recirculationMode is set to AutoRecirculation.
seatCooler : int |
Holds the seat cooler level
seatHeater : int |
Holds the seat heater level
serviceObject : ServiceObject |
Sets the service object for the feature.
As Features only expose the front API facing the developer, a service object implementing the actual function is required. This is usually retrieved through the auto discovery mechanism.
The setter for this property returns false if the QIfServiceObject
is already set to this particular instance or the QIfServiceObject isn't accepted by the feature.
See also discoveryMode.
steeringWheelHeater : int |
Holds the steering wheel heater level
targetTemperature : qreal |
Holds the target temperature of the zone expressed in centigrades
zoneSynchronizationEnabled : bool |
Indicates whether the zone synchronization is enabled.
Which zones and properties are synchronized is controlled by the backend implementing it.
Method Documentation
enumeration startAutoDiscovery() |
Performs an automatic discovery attempt.
The feature tries to locate a single ServiceObject that implements the required interface.
If no ServiceObject is found, the feature remains invalid. If more than one ServiceObject is found, the first instance is used.
This function returns either the type of the backend that was loaded; or an error.
If the discoveryMode
is set to QIfAbstractFeature::NoAutoDiscovery, this function does nothing and returns QIfAbstractFeature::NoResult.
Return values are:
Constant | Description |
---|---|
NoResult | Indicates that no auto discovery was started because the feature already has a valid ServiceObject assigned. |
ErrorWhileLoading | Indicates an error has occurred while searching for a backend with a matching interface. |
ProductionBackendLoaded | A production backend was loaded, as a result of auto discovery. |
SimulationBackendLoaded | A simulation backend was loaded, as a result of auto discovery. |
See also Dynamic Backend System and QIfServiceManager.
© 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.