summaryrefslogtreecommitdiffstats
path: root/examples/interfaceframework/climate/example-climate.qface
blob: 2e278cda000aac9e9956ed113ca607329ab4f643 (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
module Example.If.ClimateModule 1.0;

/**
 * The ClimateControl provides a QML interface to the climate control
 * of the vehicle.
 */
@config: { zoned: true }
interface ClimateControl {
    /**
     * \brief Value is true if the air conditioning is enabled.
     */
    bool airConditioning;

    /**
     * \brief value holds the fan speed level, where the level can be between
     * 0 (off) to 5 (strongest).
     */
    @config_simulator: { range: [0, 5] }
    int fanSpeedLevel;

    /**
     * \brief value holds the target temperature of the zone expressed
     * in centigrades
     */
    int targetTemperature;

    /**
     * \brief value holds the outside temperature of the zone expressed in
     * centigrades
     */
    readonly int outsideTemperature;

    /**
     * \brief value holds the recirculation mode
     */
    RecirculationMode recirculationMode;
}

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