summaryrefslogtreecommitdiff
path: root/rockworkd/libpebble/dataloggingendpoint.h
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2016-02-11 23:55:16 +0100
committerAndrew Branson <andrew.branson@cern.ch>2016-02-11 23:55:16 +0100
commit29aaea2d80a9eb1715b6cddfac2d2aacf76358bd (patch)
tree012795b6bec16c72f38d33cff46324c9a0225868 /rockworkd/libpebble/dataloggingendpoint.h
launchpad ~mzanetti/rockwork/trunk r87
Diffstat (limited to 'rockworkd/libpebble/dataloggingendpoint.h')
-rw-r--r--rockworkd/libpebble/dataloggingendpoint.h39
1 files changed, 39 insertions, 0 deletions
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 <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