From bc899047089079dde323e84a57efe46ce6af653d Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 11 May 2013 16:10:50 +0200 Subject: add the liveview paint engine --- libsowatch/sowatch.h | 1 + libsowatch/watch.h | 2 ++ libsowatch/watchserver.cpp | 5 ++--- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'libsowatch') diff --git a/libsowatch/sowatch.h b/libsowatch/sowatch.h index e0ace02..31ee48a 100644 --- a/libsowatch/sowatch.h +++ b/libsowatch/sowatch.h @@ -9,6 +9,7 @@ #include "watch.h" #include "watchserver.h" #include "watchscanner.h" +#include "watchpaintengine.h" #include "watchplugininterface.h" #include "notification.h" diff --git a/libsowatch/watch.h b/libsowatch/watch.h index 938071b..b0a2a93 100644 --- a/libsowatch/watch.h +++ b/libsowatch/watch.h @@ -85,6 +85,8 @@ signals: void buttonPressed(int button); /** A button has been pressed and then released. */ void buttonReleased(int button); + /** Emitted when e.g. either via the watch menu, or similar, a watchlet is requested. */ + void watchletRequested(const QString& id); }; } diff --git a/libsowatch/watchserver.cpp b/libsowatch/watchserver.cpp index f79b1c1..fa4011f 100644 --- a/libsowatch/watchserver.cpp +++ b/libsowatch/watchserver.cpp @@ -9,8 +9,9 @@ using namespace sowatch; WatchServer::WatchServer(Watch* watch, QObject* parent) : QObject(parent), _watch(watch), - _nextWatchletButton(-1), _idleWatchlet(0), _notificationWatchlet(0), + _nextWatchletButton(-1), _oldNotificationThreshold(300), + _idleWatchlet(0), _notificationWatchlet(0), _notifications(new NotificationsModel(this)), _activeWatchlet(0), _currentWatchlet(0), _currentWatchletIndex(-1), _syncTimeTimer(new QTimer(this)) @@ -161,7 +162,6 @@ const NotificationsModel * WatchServer::notifications() const void WatchServer::postNotification(Notification *notification) { - const Notification::Type type = notification->type(); const Notification::Priority priority = notification->priority(); // Add notification to model @@ -401,7 +401,6 @@ void WatchServer::handleNotificationChanged() QObject *obj = sender(); if (obj) { Notification* n = static_cast(obj); - const Notification::Type type = n->type(); const uint lastCount = _notificationCounts[n]; _notificationCounts[n] = n->count(); -- cgit v1.2.3