summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r--libsowatch/watchserver.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h
index 43bb7d4..a1cda45 100644
--- a/libsowatch/watchserver.h
+++ b/libsowatch/watchserver.h
@@ -8,15 +8,16 @@
#include <QtCore/QTimer>
#include "sowatch_global.h"
-#include "notificationsmodel.h"
+#include "notification.h"
namespace sowatch
{
class Watch;
class Watchlet;
+class WatchletsModel;
class NotificationProvider;
-class WeatherNotification;
+class NotificationsModel;
class SOWATCH_EXPORT WatchServer : public QObject
{
@@ -41,6 +42,8 @@ public:
Watchlet *notificationWatchlet();
void setNotificationWatchlet(Watchlet *watchlet);
+ const WatchletsModel * watchlets() const;
+
void addWatchlet(Watchlet *watchlet);
void insertWatchlet(int position, Watchlet *watchlet);
void moveWatchlet(const Watchlet *watchlet, int to);
@@ -87,7 +90,7 @@ private:
Watchlet *_notificationWatchlet;
/** A list of watchlets, in order. */
- QList<Watchlet*> _watchlets;
+ WatchletsModel *_watchlets;
/** Stores all the watchlets with a given watchled id. */
QMap<QString, Watchlet*> _watchletIds;
@@ -123,6 +126,7 @@ private slots:
void handleWatchDisconnected();
void handleWatchIdling();
void handleWatchButtonPress(int button);
+ void handleWatchletRequested(const QString& id);
void handleNotificationChanged();
void handleNotificationDismissed();