summaryrefslogtreecommitdiff
path: root/daemon/watchconnector.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-11-30 20:58:57 +0100
committerJavier <dev.git@javispedro.com>2014-11-30 20:58:57 +0100
commitf7c8244641a4242f6a8c706bd918494b23e48075 (patch)
treef84b5ead8f4d621cf47e10489889fb9fef8b1f61 /daemon/watchconnector.h
parent4527ab9a4147a8f15bf8ca5613341df9d0029d0c (diff)
introduce the AppMsgManager and the JsKitManager
will be used to handle application messages (push, etc) while the JSKitManager will run PebbleKit JS scripts. also add the ability to unpack PebbleDicts
Diffstat (limited to 'daemon/watchconnector.h')
-rw-r--r--daemon/watchconnector.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h
index c5ec332..8a7d574 100644
--- a/daemon/watchconnector.h
+++ b/daemon/watchconnector.h
@@ -122,6 +122,10 @@ public:
datalogTIMEOUT = 7
};
enum {
+ launcherSTARTED = 1,
+ launcherSTOPPED = 0
+ };
+ enum {
leadEMAIL = 0,
leadSMS = 1,
leadFACEBOOK = 2,
@@ -153,6 +157,14 @@ public:
DEFAULT_TIMEOUT_MSECS = 100
};
+ typedef QMap<int, QVariant> Dict;
+ enum DictItemType {
+ typeBYTES,
+ typeSTRING,
+ typeUINT,
+ typeINT
+ };
+
typedef std::function<bool(const QByteArray &)> EndpointHandlerFunc;
explicit WatchConnector(QObject *parent = 0);