aboutsummaryrefslogtreecommitdiffstats
path: root/Application/cluster-service.hxx
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-11-22 07:54:57 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-11-26 20:12:00 +0900
commitcbb63f0e45340f6dd2cc9f360ed4da15c745186f (patch)
tree471935b3ce3238f7bb402942ba8c530cf7892500 /Application/cluster-service.hxx
parent5b7127cac34bf44a9d9e58c02b44939955d50890 (diff)
Support for cluster api binding
Existing AGL Instrument Cluster is not implement cluster service only a framework library. This task aim to support cluster service. In 1st step, cluster-refgui will be controlled by cluster-service demo signal. This patch a part of this task. Bug-AGL: SPEC-4991 Change-Id: I1dfdf3a6b9691f536bb96cd197feac89f4137540 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'Application/cluster-service.hxx')
-rw-r--r--Application/cluster-service.hxx47
1 files changed, 47 insertions, 0 deletions
diff --git a/Application/cluster-service.hxx b/Application/cluster-service.hxx
new file mode 100644
index 0000000..06dc5f8
--- /dev/null
+++ b/Application/cluster-service.hxx
@@ -0,0 +1,47 @@
+#ifndef CLUSTERSERVICE_HXX
+#define CLUSTERSERVICE_HXX
+
+#include <QThread>
+
+class QClusterService : public QThread
+{
+ Q_OBJECT
+
+protected :
+ virtual void run();
+
+public:
+ // class I/F for QML
+ Q_INVOKABLE int getSpAnalogVal();
+ Q_INVOKABLE int getTaAnalogVal();
+ Q_INVOKABLE int getTrcomTripAVal();
+ Q_INVOKABLE int getOTempVal();
+ Q_INVOKABLE bool getTurnR();
+ Q_INVOKABLE bool getTurnL();
+ Q_INVOKABLE bool getFrontRightSeatbelt();
+ Q_INVOKABLE bool getFrontLeftSeatbelt();
+ Q_INVOKABLE bool getGeneralWarn();
+ Q_INVOKABLE bool getEngine();
+ Q_INVOKABLE bool getLowBattery();
+ Q_INVOKABLE bool getLdwOff();
+ Q_INVOKABLE bool getSrsAirbag();
+ Q_INVOKABLE bool getEspOff();
+ Q_INVOKABLE bool getBrake();
+ Q_INVOKABLE bool getAbs();
+ Q_INVOKABLE bool getEspAct();
+ Q_INVOKABLE bool getHillDescent();
+ Q_INVOKABLE bool getImmobi();
+ Q_INVOKABLE bool getDoor();
+ Q_INVOKABLE bool getEps();
+ Q_INVOKABLE bool getAutoHiBeamGreen();
+ Q_INVOKABLE bool getHighbeam();
+
+ Q_INVOKABLE QString getGearAtVal();
+
+
+ // class I/F for C++
+ QClusterService();
+ virtual ~QClusterService();
+};
+
+#endif // CLUSTERSERVICE_HXX