summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-08-27 10:02:40 +0200
committerJuergen Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-11-30 10:01:19 +0100
commitc0c451249defd0f46f99433952b798194c32f87f (patch)
tree3e47611cac5084fad5f39c96bc13169fa3d96321 /examples
parent4721ce446c85a5bcc17473e0354471afea5ddb4b (diff)
downloadqtivi-qface-c0c451249defd0f46f99433952b798194c32f87f.tar.gz
Renamed IDL files to use the new qface extension.
Diffstat (limited to 'examples')
-rw-r--r--examples/entertainment.tuner.Tuner.qface (renamed from examples/tuner.qif)12
-rw-r--r--examples/test.qface10
-rw-r--r--examples/vehicle.climate.ClimateControl.qface (renamed from examples/climate.qif)102
3 files changed, 73 insertions, 51 deletions
diff --git a/examples/tuner.qif b/examples/entertainment.tuner.Tuner.qface
index 888a420..8a41c33 100644
--- a/examples/tuner.qif
+++ b/examples/entertainment.tuner.Tuner.qface
@@ -9,7 +9,7 @@ service Tuner {
/*! operation previousStation */
void previousStation();
/*! operation updateCurrentStation */
- void updateCurrentStation(int stationId);
+ void updateCurrentStation(int stationId);
}
/*! enum State */
@@ -32,10 +32,18 @@ enum Waveband {
AM=1
}
+flag Features {
+ Mono = 0x1,
+ Stereo = 0x2,
+}
+
/*! struct Station */
struct Station {
/*! member stationId */
int stationId;
/*! member name */
string name;
-}
+}
+
+
+
diff --git a/examples/test.qface b/examples/test.qface
new file mode 100644
index 0000000..fc31d2e
--- /dev/null
+++ b/examples/test.qface
@@ -0,0 +1,10 @@
+package com.pelagicore.test;
+
+service TestService {
+ int intValue;
+ readonly string stringValue;
+ bool boolValue;
+ real realValue;
+
+ void call();
+}
diff --git a/examples/climate.qif b/examples/vehicle.climate.ClimateControl.qface
index b393081..d3b6091 100644
--- a/examples/climate.qif
+++ b/examples/vehicle.climate.ClimateControl.qface
@@ -14,50 +14,25 @@ service ClimateControl {
*/
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.
+ * value is true if the heater is enabled.
*/
- bool defrost;
+ bool heater;
/*!
* 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.
+ * value holds the steering wheel heater level, where the level can
+ * be between minimumValue(off) to maximumValue (warmest).
*/
- bool heater;
+ int steeringWheelHeater;
/*!
- * value holds the outside temperature of the zone expressed in
- * centigrades, where the temperature can be between
+ * value holds the target 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;
+ int targetTemperature;
/*!
* value holds the seat cooler level, where the level can be
* between minimumValue(off) to maximumValue (coolest).
@@ -69,16 +44,11 @@ service ClimateControl {
*/
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
+ * value holds the outside temperature of the zone expressed in
+ * centigrades, where the temperature can be between
* minimumValue(coolest) to maximumValue (warmest).
*/
- int targetTemperature;
+ int outsideTemperature;
/*!
* value is true if the zone synchronization is enabled.
*
@@ -86,12 +56,48 @@ service ClimateControl {
* by the backend implementing it.
*/
bool zoneSynchronization;
+ /*!
+ * 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 recirculation mode
+ */
+ RecirculationMode recirculationMode;
+ /*!
+ * value is true if the recirculation is currently running.
+ */
+ bool recirculation;
+ /*!
+ * 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 climate mode
+ */
+ ClimateMode climateMode;
+ /*!
+ * 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;
}
-flags AirflowDirections {
- Windshield = 0x1,
- Dashboard = 0x2,
- Floor = 0x4
+flag AirflowDirection {
+ Windshield = 1,
+ Dashboard = 2,
+ Floor = 4
+}
+
+enum RecirculationMode {
+ RecirculationOff = 0x0,
+ RecirculationOn = 0x1,
+ AutoRecirculation = 0x2
}
enum ClimateMode {
@@ -100,8 +106,6 @@ enum ClimateMode {
AutoClimate = 0x2
}
-enum RecirculationMode {
- RecirculationOff = 0x0,
- RecirculationOn = 0x1,
- AutoRecirculation = 0x2
+service Extra {
+
}