summaryrefslogtreecommitdiff
path: root/examples/ivicore/qface-tutorial/chapter6-own-backend/instrument-cluster.qface
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ivicore/qface-tutorial/chapter6-own-backend/instrument-cluster.qface')
-rw-r--r--examples/ivicore/qface-tutorial/chapter6-own-backend/instrument-cluster.qface23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/ivicore/qface-tutorial/chapter6-own-backend/instrument-cluster.qface b/examples/ivicore/qface-tutorial/chapter6-own-backend/instrument-cluster.qface
new file mode 100644
index 0000000..f6a5c9f
--- /dev/null
+++ b/examples/ivicore/qface-tutorial/chapter6-own-backend/instrument-cluster.qface
@@ -0,0 +1,23 @@
+@config_simulator: { simulationFile: "qrc:/simulation.qml" }
+module Example.IVI.InstrumentCluster 1.0
+
+interface InstrumentCluster {
+ readonly int speed;
+ readonly int rpm;
+ readonly real fuel;
+ @config_simulator: { default: 15 }
+ readonly real temperature;
+ readonly SystemType systemType;
+ readonly Warning currentWarning;
+}
+
+enum SystemType {
+ Imperial,
+ Metric
+}
+
+struct Warning {
+ string color
+ string text
+ string icon
+}