summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-04-28 17:42:53 +0100
committerMike Krus <mike.krus@kdab.com>2017-05-19 13:23:45 +0000
commit3c170db282b36b3d2f1f6cf2f11a2cfca4c3ac70 (patch)
tree80469085c96a629bd594f41ed8a83d65fca805e5 /examples
parent30c43482f54dc2eb5e6089d1b20d825b2514d4da (diff)
downloadqtivi-3c170db282b36b3d2f1f6cf2f11a2cfca4c3ac70.tar.gz
Add support for specify ranges and valid values
Add range, minimum, maximum, domain to the @config_simulator tag. Renamed default_value tag to default (for consistency). Add default_system_value to specify the default for a type (0, false, "") Updated documentation Change-Id: If997488ccbbe228e6082385e137fe1d826b7923a Reviewed-by: Vadim Popov <vadim.popov@pelagicore.com> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qface-ivi-climate/qface-ivi-climate.qface8
-rw-r--r--examples/qface-ivi-climate/qface-ivi-climate.yaml30
2 files changed, 22 insertions, 16 deletions
diff --git a/examples/qface-ivi-climate/qface-ivi-climate.qface b/examples/qface-ivi-climate/qface-ivi-climate.qface
index b552fb5..17bca97 100644
--- a/examples/qface-ivi-climate/qface-ivi-climate.qface
+++ b/examples/qface-ivi-climate/qface-ivi-climate.qface
@@ -21,17 +21,20 @@ interface ClimateControl {
* @brief value holds the fan speed level, where the level can be between
* minimumValue(off) to maximumValue (strongest).
*/
+ @config_simulator: { range:[0, 50] }
int fanSpeedLevel;
/**
* @brief value holds the steering wheel heater level, where the level can
* be between minimumValue(off) to maximumValue (warmest).
*/
+ @config_simulator: { minimum: 0 }
int steeringWheelHeater;
/**
* @brief value holds the target temperature of the zone expressed
* in centigrades, where the temperature can be between
* minimumValue(coolest) to maximumValue (warmest).
*/
+ @config_simulator: { maximum: 30 }
int targetTemperature;
/**
* @brief value holds the seat cooler level, where the level can be
@@ -50,6 +53,11 @@ interface ClimateControl {
*/
int outsideTemperature;
/**
+ * @brief outside temp lable
+ */
+ @config_simulator: { domain: ["cold", "mild", "warm" ] }
+ string outsideTemperatureLabel;
+ /**
* @brief value is true if the zone synchronization is enabled.
*
* Which zones and properties are synchronized is controlled
diff --git a/examples/qface-ivi-climate/qface-ivi-climate.yaml b/examples/qface-ivi-climate/qface-ivi-climate.yaml
index 71c8e2e..d9efb89 100644
--- a/examples/qface-ivi-climate/qface-ivi-climate.yaml
+++ b/examples/qface-ivi-climate/qface-ivi-climate.yaml
@@ -4,61 +4,59 @@ example.ivi.climate.ClimateControl:
example.ivi.climate.ClimateControl#airConditioning:
config_simulator:
- default_value: true
+ default: true
example.ivi.climate.ClimateControl#heater:
config_simulator:
- default_value: true
+ default: true
example.ivi.climate.ClimateControl#recirculation:
config_simulator:
- default_value: false
+ default: false
example.ivi.climate.ClimateControl#zoneSynchronization:
config_simulator:
- default_value: false
+ default: false
example.ivi.climate.ClimateControl#defrost:
config_simulator:
- default_value: false
+ default: false
example.ivi.climate.ClimateControl#steeringWheelHeater:
config_simulator:
- default_value: 0
+ default: 0
example.ivi.climate.ClimateControl#fanSpeedLevel:
config_simulator:
- default_value: 2
- range_high: 50
- range_low: 0
+ default: 2
example.ivi.climate.ClimateControl#recirculationMode:
config_simulator:
- default_value: RecirculationMode.RecirculationOff
+ default: RecirculationMode.RecirculationOff
example.ivi.climate.ClimateControl#recirculationSensitivityLevel:
config_simulator:
unsupported: true
- default_value: 0
+ default: 0
example.ivi.climate.ClimateControl#climateMode:
config_simulator:
unsupported: true
- default_value: ClimateMode.ClimateOn
+ default: ClimateMode.ClimateOn
example.ivi.climate.ClimateControl#automaticClimateFanIntensityLevel:
config_simulator:
unsupported: true
- default_value: 0
+ default: 0
example.ivi.climate.ClimateControl#targetTemperature:
config_simulator:
- default_value: 0
+ default: 0
example.ivi.climate.ClimateControl#seatCooler:
config_simulator:
- default_value: 0
+ default: 0
example.ivi.climate.ClimateControl#seatHeater:
config_simulator:
- default_value: 0
+ default: 0