summaryrefslogtreecommitdiff
path: root/sowatchd/watchhandler.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-05 03:18:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-05 03:18:46 +0200
commit12cf6df3f1c90c6ccbab398f0ae03c946e4af638 (patch)
treea205f1240a421a1a6ac4d97e592730e5be00533b /sowatchd/watchhandler.cpp
parent12d61ddf50f5f34cafd25d7cbdc827156cfb184c (diff)
downloadsowatch-12cf6df3f1c90c6ccbab398f0ae03c946e4af638.tar.gz
sowatch-12cf6df3f1c90c6ccbab398f0ae03c946e4af638.zip
continue working on qml watchface support
Diffstat (limited to 'sowatchd/watchhandler.cpp')
-rw-r--r--sowatchd/watchhandler.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/sowatchd/watchhandler.cpp b/sowatchd/watchhandler.cpp
index bde68b4..a2ea76a 100644
--- a/sowatchd/watchhandler.cpp
+++ b/sowatchd/watchhandler.cpp
@@ -57,6 +57,22 @@ WatchHandler::WatchHandler(ConfigKey *config, QObject *parent)
// Configure the server
_server->setNextWatchletButton(_config->value("next-watchlet-button").toString());
+ QString idle_watchlet_id = _config->value("idle-watchlet").toString();
+ if (!idle_watchlet_id.isEmpty()) {
+ Watchlet *watchlet = createWatchlet(idle_watchlet_id);
+ if (watchlet) {
+ _server->setIdleWatchlet(watchlet);
+ }
+ }
+
+ QString notif_watchlet_id = _config->value("notification-watchlet").toString();
+ if (!notif_watchlet_id.isEmpty()) {
+ Watchlet *watchlet = createWatchlet(notif_watchlet_id);
+ if (watchlet) {
+ _server->setNotificationWatchlet(watchlet);
+ }
+ }
+
updateProviders();
updateWatchlets();
}