From 12d61ddf50f5f34cafd25d7cbdc827156cfb184c Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 5 May 2013 02:21:29 +0200 Subject: preparing face watchlet support --- libsowatch/watchserver.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libsowatch') diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h index fb1b4e7..30f39c6 100644 --- a/libsowatch/watchserver.h +++ b/libsowatch/watchserver.h @@ -23,6 +23,8 @@ class SOWATCH_EXPORT WatchServer : public QObject Q_OBJECT Q_PROPERTY(Watch* watch READ watch CONSTANT) Q_PROPERTY(QString nextWatchletButton READ nextWatchletButton WRITE setNextWatchletButton) + Q_PROPERTY(Watchlet* idleWatchlet READ idleWatchlet WRITE setIdleWatchlet) + Q_PROPERTY(Watchlet* notificationWatchlet READ notificationWatchlet WRITE setNotificationWatchlet) public: explicit WatchServer(Watch *watch, QObject *parent = 0); @@ -33,6 +35,12 @@ public: QString nextWatchletButton() const; void setNextWatchletButton(const QString& value); + Watchlet *idleWatchlet(); + void setIdleWatchlet(Watchlet *watchlet); + + Watchlet *notificationWatchlet(); + void setNotificationWatchlet(Watchlet *watchlet); + void addWatchlet(Watchlet *watchlet); void insertWatchlet(int position, Watchlet *watchlet); void moveWatchlet(const Watchlet *watchlet, int to); @@ -67,6 +75,11 @@ private: /** The amount of seconds that have to pass for a notification to be considered "outdated" and not shown. */ int _oldNotificationThreshold; + /** The watchlet that is activated whenever the watch goes to the idle screen (optional). */ + Watchlet *_idleWatchlet; + /** The watchlet that is used to display notifications (optional). */ + Watchlet *_notificationWatchlet; + /** A list of watchlets, in order. */ QList _watchlets; /** Stores all the watchlets with a given watchled id. */ -- cgit v1.2.3