summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-10-02 16:39:40 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-10-02 16:39:40 +0200
commit0a656b75f3fc80f13424db0e7ec403dff28a366e (patch)
tree23f72a2fde3f718048b49d9806ded3d315d50a80 /libsowatch/watchserver.h
parentd9f132f3d5bf41ee4f30e7ea2bd1b61120fa29b7 (diff)
downloadsowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.tar.gz
sowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.zip
new notifications list, time syncing
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r--libsowatch/watchserver.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h
index 66c941a..a773749 100644
--- a/libsowatch/watchserver.h
+++ b/libsowatch/watchserver.h
@@ -5,6 +5,7 @@
#include <QtCore/QStringList>
#include <QtCore/QMap>
#include <QtCore/QQueue>
+#include <QtCore/QTimer>
#include "sowatch_global.h"
#include "notification.h"
@@ -32,12 +33,19 @@ public:
void addProvider(NotificationProvider* provider);
+ /** Get a list of all current live notifications. */
+ QList<Notification*> liveNotifications();
+
public slots:
void postNotification(Notification *notification);
+ void nextNotification();
+
void runWatchlet(const QString& id);
void closeWatchlet();
void nextWatchlet();
+ void syncTime();
+
private:
Watch* _watch;
@@ -61,10 +69,12 @@ private:
/** The current watchlet index if any, for use by nextWatchlet() */
int _currentWatchletIndex;
+ /** Used for periodic time syncing. */
+ QTimer* _syncTimeTimer;
+
void registerWatchlet(Watchlet *watchlet);
void reactivateCurrentWatchlet();
- void nextNotification();
uint getNotificationCount(Notification::Type type);
void goToIdle();
@@ -76,7 +86,7 @@ private slots:
void watchButtonPress(int button);
void notificationChanged();
- void notificationCleared();
+ void notificationDismissed();
friend class Watchlet;
};