summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-04-26 01:36:20 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-04-26 01:36:20 +0200
commit93f3acd128d6b349efe14e97b12c2703ca4f81f3 (patch)
tree937f3de2307444f0c28d6d21f26f1580e789b074 /libsowatch/watchserver.h
parent1375a26b135547fdd8e07db62acf8116a8482560 (diff)
downloadsowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.tar.gz
sowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.zip
Moved the core framework to GConf & D-Bus
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r--libsowatch/watchserver.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h
index d73b56b..3995bc6 100644
--- a/libsowatch/watchserver.h
+++ b/libsowatch/watchserver.h
@@ -32,6 +32,7 @@ public:
QString nextWatchletButton() const;
void setNextWatchletButton(const QString& value);
+ void addWatchlet(Watchlet* watchlet);
void addProvider(NotificationProvider* provider);
/** Get a list of all current live notifications. */
@@ -41,6 +42,7 @@ public slots:
void postNotification(Notification *notification);
void nextNotification();
+ void runWatchlet(Watchlet* watchlet);
void runWatchlet(const QString& id);
void closeWatchlet();
void nextWatchlet();
@@ -55,10 +57,10 @@ private:
/** The amount of seconds that have to pass for a notification to be considered "outdated" and not shown. */
int _oldNotificationThreshold;
- /** A list of watchlets in order, for use by nextWatchlet() */
- QStringList _watchletIds;
- /** Actual Watchlet child objects by id. */
- QMap<QString, Watchlet*> _watchlets;
+ /** A list of watchlets, in order. */
+ QList<Watchlet*> _watchlets;
+ /** Stores all the watchlets with a given watchled id. */
+ QMap<QString, Watchlet*> _watchletIds;
/** Stores current live notifications, classified by type. */
QList<Notification*> _notifications[Notification::TypeCount];
@@ -79,9 +81,6 @@ private:
/** Used for periodic watch time syncing. */
QTimer* _syncTimeTimer;
- /** Called by Watchlet constructor to register itself as a child. */
- void registerWatchlet(Watchlet *watchlet);
-
/** Counts all notifications from a given type. */
uint getNotificationCount(Notification::Type type);
@@ -97,8 +96,6 @@ private slots:
void notificationChanged();
void notificationDismissed();
-
-friend class Watchlet;
};
}