summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/watchserver.h')
-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. */