summaryrefslogtreecommitdiffstats
path: root/Application/cluster-service.hxx
blob: 06dc5f82f0f440021f60f0d786f3e6612283c666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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