From 29aaea2d80a9eb1715b6cddfac2d2aacf76358bd Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 11 Feb 2016 23:55:16 +0100 Subject: launchpad ~mzanetti/rockwork/trunk r87 --- rockworkd/libpebble/dataloggingendpoint.h | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 rockworkd/libpebble/dataloggingendpoint.h (limited to 'rockworkd/libpebble/dataloggingendpoint.h') diff --git a/rockworkd/libpebble/dataloggingendpoint.h b/rockworkd/libpebble/dataloggingendpoint.h new file mode 100644 index 0000000..2c5dfc5 --- /dev/null +++ b/rockworkd/libpebble/dataloggingendpoint.h @@ -0,0 +1,39 @@ +#ifndef DATALOGGINGENDPOINT_H +#define DATALOGGINGENDPOINT_H + +#include + +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 -- cgit v1.2.3