summaryrefslogtreecommitdiff
path: root/examples/climate.qif
blob: b3930811c137c1552fa66401fd55802b27000039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package vehicle.climate;

/*!
 * The ClimateControl provides a QML interface to the climate control
 * of the vehicle.
 */
service ClimateControl {
    /*!
     * Value is true if the air conditioning is enabled.
     */
    bool airConditioning;
    /*!
     * value holds the airflow directions
     */
    AirflowDirections airflowDirections;
    /*!
     * value holds the intensity level of the fan when the climateMode
     * is set to AutoClimate, where the level can be between
     * minimumValue(least intensity) to maximumValue(most intensity).
     */
    int automaticClimateFanIntensityLevel;
    /*!
     * value holds the climate mode
     */
    ClimateMode climateMode;
    /*!
     * value is true if defrost is enabled. Usually that means that the fans
     * are on the highest level to remove ice from the windshield.
     */
    bool defrost;
    /*!
     * value holds the fan speed level, where the level can be between
     * minimumValue(off) to maximumValue (strongest).
     */
    int fanSpeedLevel;
    /*!
     * value is true if the heater is enabled.
     */
    bool heater;
    /*!
     * value holds the outside temperature of the zone expressed in
     * centigrades, where the temperature can be between
     * minimumValue(coolest) to maximumValue (warmest).
     */
    int outsideTemperature;
    /*!
     * value is true if the recirculation is currently running.
     */
    bool recirculation;
    /*!
     * value holds the recirculation mode
     */
    RecirculationMode recirculationMode;
    /*!
     * value holds the sensitivity level of the recirculation
     * system when the recirculationMode is set to AutoRecirculation,
     * where the level can be between minimumValue(least sensitive)
     * to maximumValue(most sensitive).
     */
    int recirculationSensitivityLevel;
    /*!
     * value holds the seat cooler level, where the level can be
     * between minimumValue(off) to maximumValue (coolest).
     */
    int seatCooler;
    /*!
     * value holds the seat heater level, where the level can be between
     * minimumValue(off) to maximumValue (warmest).
     */
    int seatHeater;
    /*!
     * value holds the steering wheel heater level, where the level can
     * be between minimumValue(off) to maximumValue (warmest).
     */
    int steeringWheelHeater;
    /*!
     * value holds the target temperature of the zone expressed
     * in centigrades, where the temperature can be between
     * minimumValue(coolest) to maximumValue (warmest).
     */
    int targetTemperature;
    /*!
     * value is true if the zone synchronization is enabled.
     *
     * Which zones and properties are synchronized is controlled
     * by the backend implementing it.
     */
    bool zoneSynchronization;
}

flags AirflowDirections {
    Windshield = 0x1,
    Dashboard = 0x2,
    Floor = 0x4
}

enum ClimateMode {
    ClimateOff = 0x0,
    ClimateOn = 0x1,
    AutoClimate = 0x2
}

enum RecirculationMode {
    RecirculationOff = 0x0,
    RecirculationOn = 0x1,
    AutoRecirculation = 0x2
}