blob: 2c5dfc58b611ef1e1606322b7a2be68b21400156 (
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
|
#ifndef DATALOGGINGENDPOINT_H
#define DATALOGGINGENDPOINT_H
#include <QObject>
class Pebble;
class WatchConnection;
class DataLoggingEndpoint : public QObject
{
Q_OBJECT
public:
enum DataLoggingCommand {
DataLoggingDespoolOpenSession = 0x01,
DataLoggingDespoolSendData = 0x02,
DataLoggingCloseSession = 0x03,
DataLoggingReportOpenSessions = 0x84,
DataLoggingACK = 0x85,
DataLoggingNACK = 0x86,
DataLoggingTimeout = 0x07,
DataLoggingEmptySession = 0x88,
DataLoggingGetSendEnableRequest = 0x89,
DataLoggingGetSendEnableResponse = 0x0A,
DataLoggingSetSendEnable = 0x8B
};
explicit DataLoggingEndpoint(Pebble *pebble, WatchConnection *connection);
signals:
private slots:
void handleMessage(const QByteArray &data);
private:
Pebble *m_pebble;
WatchConnection *m_connection;
};
#endif // DATALOGGINGENDPOINT_H
|