summaryrefslogtreecommitdiff
path: root/liveviewwatchlets/liveviewnotificationwatchlet.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-07-07 13:50:28 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-07-07 13:50:28 +0200
commitf61dfc6557303a8bba5301927f42e5b2a7ffcac6 (patch)
treefdba31b412015684d46c7a3cb070b8a57ff37ef4 /liveviewwatchlets/liveviewnotificationwatchlet.cpp
parent92475d094cfddf7dd3036f5f1a9d6845a83ee350 (diff)
downloadsowatch-f61dfc6557303a8bba5301927f42e5b2a7ffcac6.tar.gz
sowatch-f61dfc6557303a8bba5301927f42e5b2a7ffcac6.zip
add some notification support to liveview
Diffstat (limited to 'liveviewwatchlets/liveviewnotificationwatchlet.cpp')
-rw-r--r--liveviewwatchlets/liveviewnotificationwatchlet.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/liveviewwatchlets/liveviewnotificationwatchlet.cpp b/liveviewwatchlets/liveviewnotificationwatchlet.cpp
new file mode 100644
index 0000000..eecc485
--- /dev/null
+++ b/liveviewwatchlets/liveviewnotificationwatchlet.cpp
@@ -0,0 +1,11 @@
+#include "liveviewnotificationwatchlet.h"
+
+using namespace sowatch;
+
+const QLatin1String LiveViewNotificationWatchlet::myId("com.javispedro.sowatch.liveview.notification");
+
+LiveViewNotificationWatchlet::LiveViewNotificationWatchlet(Watch *watch) :
+ DeclarativeWatchlet(watch, myId)
+{
+ setSource(QUrl(SOWATCH_QML_DIR "/liveviewwatchlets/" + watch->model() + "-notification.qml"));
+}