summaryrefslogtreecommitdiff
path: root/libsowatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-05 02:21:29 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-05 02:21:29 +0200
commit12d61ddf50f5f34cafd25d7cbdc827156cfb184c (patch)
treebe975c0ba828c8322230b0146e1eb4fa30133127 /libsowatch
parent49c64104c0750857858504b512955d9cc31e5c42 (diff)
downloadsowatch-12d61ddf50f5f34cafd25d7cbdc827156cfb184c.tar.gz
sowatch-12d61ddf50f5f34cafd25d7cbdc827156cfb184c.zip
preparing face watchlet support
Diffstat (limited to 'libsowatch')
-rw-r--r--libsowatch/watchserver.h13
1 files changed, 13 insertions, 0 deletions
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<Watchlet*> _watchlets;
/** Stores all the watchlets with a given watchled id. */