forked from vranki/ExtPlane-Panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextplaneclient.h
More file actions
33 lines (30 loc) · 882 Bytes
/
extplaneclient.h
File metadata and controls
33 lines (30 loc) · 882 Bytes
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
#ifndef EXTPLANECLIENT_H
#define EXTPLANECLIENT_H
#include <QObject>
#include <QString>
#include <QList>
#include <QSet>
#include "clientdataref.h"
#include "clientdatarefprovicer.h"
class ExtPlaneClient : public QObject {
Q_OBJECT
public:
explicit ExtPlaneClient(QObject *parent, QString name, ClientDataRefProvicer *drp);
~ExtPlaneClient();
void subscribeDataRef(QString name, double accuracy=0);
void unsubscribeDataRef(QString name);
void keyPress(int id);
void buttonPress(int id);
void buttonRelease(int id);
signals:
void refChanged(QString name, double value);
void refChanged(QString name, QString valueString);
public slots:
void cdrChanged(ClientDataRef *ref);
private:
QString _name;
QList<ClientDataRef*> _dataRefs;
QSet<int> _heldButtons;
ClientDataRefProvicer *_connection;
};
#endif // EXTPLANECLIENT_H