From cbb63f0e45340f6dd2cc9f360ed4da15c745186f Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Wed, 22 Nov 2023 07:54:57 +0900 Subject: 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 --- Application/cluster-service.hxx | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Application/cluster-service.hxx (limited to 'Application/cluster-service.hxx') 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 + +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 -- cgit 1.2.3-korg