From c0c451249defd0f46f99433952b798194c32f87f Mon Sep 17 00:00:00 2001 From: Juergen Bocklage-Ryannel Date: Sat, 27 Aug 2016 10:02:40 +0200 Subject: Renamed IDL files to use the new qface extension. --- examples/climate.qif | 107 ------------------------- examples/entertainment.tuner.Tuner.qface | 49 ++++++++++++ examples/test.qface | 10 +++ examples/tuner.qif | 41 ---------- examples/vehicle.climate.ClimateControl.qface | 111 ++++++++++++++++++++++++++ 5 files changed, 170 insertions(+), 148 deletions(-) delete mode 100644 examples/climate.qif create mode 100644 examples/entertainment.tuner.Tuner.qface create mode 100644 examples/test.qface delete mode 100644 examples/tuner.qif create mode 100644 examples/vehicle.climate.ClimateControl.qface (limited to 'examples') diff --git a/examples/climate.qif b/examples/climate.qif deleted file mode 100644 index b393081..0000000 --- a/examples/climate.qif +++ /dev/null @@ -1,107 +0,0 @@ -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 -} diff --git a/examples/entertainment.tuner.Tuner.qface b/examples/entertainment.tuner.Tuner.qface new file mode 100644 index 0000000..8a41c33 --- /dev/null +++ b/examples/entertainment.tuner.Tuner.qface @@ -0,0 +1,49 @@ +package entertainment.tuner; + +/*! Service Tuner */ +service Tuner { + /*! attribute currentStation */ + readonly Station currentStation; + /*! operation nextStation */ + void nextStation(); + /*! operation previousStation */ + void previousStation(); + /*! operation updateCurrentStation */ + void updateCurrentStation(int stationId); +} + +/*! enum State */ +enum State { + /*! value State.Null */ + Null=0, + /*! value State.Loading */ + Loading=1, + /*! value State.Ready */ + Ready=2, + /*! value State.Error */ + Error=3 +} + +/*! enum Waveband */ +enum Waveband { + /*! value Waveband.FM */ + FM=0, + /*! value Waveband.AM */ + 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/tuner.qif b/examples/tuner.qif deleted file mode 100644 index 888a420..0000000 --- a/examples/tuner.qif +++ /dev/null @@ -1,41 +0,0 @@ -package entertainment.tuner; - -/*! Service Tuner */ -service Tuner { - /*! attribute currentStation */ - readonly Station currentStation; - /*! operation nextStation */ - void nextStation(); - /*! operation previousStation */ - void previousStation(); - /*! operation updateCurrentStation */ - void updateCurrentStation(int stationId); -} - -/*! enum State */ -enum State { - /*! value State.Null */ - Null=0, - /*! value State.Loading */ - Loading=1, - /*! value State.Ready */ - Ready=2, - /*! value State.Error */ - Error=3 -} - -/*! enum Waveband */ -enum Waveband { - /*! value Waveband.FM */ - FM=0, - /*! value Waveband.AM */ - AM=1 -} - -/*! struct Station */ -struct Station { - /*! member stationId */ - int stationId; - /*! member name */ - string name; -} diff --git a/examples/vehicle.climate.ClimateControl.qface b/examples/vehicle.climate.ClimateControl.qface new file mode 100644 index 0000000..d3b6091 --- /dev/null +++ b/examples/vehicle.climate.ClimateControl.qface @@ -0,0 +1,111 @@ +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 is true if the heater is enabled. + */ + bool heater; + /*! + * value holds the fan speed level, where the level can be between + * minimumValue(off) to maximumValue (strongest). + */ + int fanSpeedLevel; + /*! + * 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 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 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 zone synchronization is enabled. + * + * Which zones and properties are synchronized is controlled + * 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; +} + +flag AirflowDirection { + Windshield = 1, + Dashboard = 2, + Floor = 4 +} + +enum RecirculationMode { + RecirculationOff = 0x0, + RecirculationOn = 0x1, + AutoRecirculation = 0x2 +} + +enum ClimateMode { + ClimateOff = 0x0, + ClimateOn = 0x1, + AutoClimate = 0x2 +} + +service Extra { + +} -- cgit v1.2.1