From f61dfc6557303a8bba5301927f42e5b2a7ffcac6 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 7 Jul 2013 13:50:28 +0200 Subject: add some notification support to liveview --- liveviewwatchlets/liveviewnotificationwatchlet.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 liveviewwatchlets/liveviewnotificationwatchlet.cpp (limited to 'liveviewwatchlets/liveviewnotificationwatchlet.cpp') 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")); +} -- cgit v1.2.3