summaryrefslogtreecommitdiff
path: root/libsowatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-11 16:10:50 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-11 16:10:50 +0200
commitbc899047089079dde323e84a57efe46ce6af653d (patch)
treec88ef2bc6d1876518b285db15e5a400c6c4795a4 /libsowatch
parent4b5bbdea7bdb6defc88023ba65f7aec1a7439977 (diff)
downloadsowatch-bc899047089079dde323e84a57efe46ce6af653d.tar.gz
sowatch-bc899047089079dde323e84a57efe46ce6af653d.zip
add the liveview paint engine
Diffstat (limited to 'libsowatch')
-rw-r--r--libsowatch/sowatch.h1
-rw-r--r--libsowatch/watch.h2
-rw-r--r--libsowatch/watchserver.cpp5
3 files changed, 5 insertions, 3 deletions
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<Notification*>(obj);
- const Notification::Type type = n->type();
const uint lastCount = _notificationCounts[n];
_notificationCounts[n] = n->count();