summaryrefslogtreecommitdiff
path: root/daemon/watchcommands.h
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-07-13 05:14:11 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-07-13 05:14:11 +0200
commit09d98ef6e6d32e73a6b3c74679adc8a49b0dee7e (patch)
treed4e5682b1b534c6b475c6279fdd1652c3c8e4b74 /daemon/watchcommands.h
parente99e0f6d456e86be244ed3baa022088ec859944a (diff)
Moved processing watch commands to separate object
Diffstat (limited to 'daemon/watchcommands.h')
-rw-r--r--daemon/watchcommands.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/daemon/watchcommands.h b/daemon/watchcommands.h
new file mode 100644
index 0000000..ee58cbe
--- /dev/null
+++ b/daemon/watchcommands.h
@@ -0,0 +1,25 @@
+#ifndef WATCHCOMMANDS_H
+#define WATCHCOMMANDS_H
+
+#include "watchconnector.h"
+
+#include <QObject>
+
+class WatchCommands : public QObject
+{
+ Q_OBJECT
+
+ watch::WatchConnector *watch;
+
+public:
+ explicit WatchCommands(watch::WatchConnector *watch, QObject *parent = 0);
+
+signals:
+ void hangup();
+
+public slots:
+ void processMessage(uint endpoint, uint datalen, QByteArray data);
+
+};
+
+#endif // WATCHCOMMANDS_H