diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 19:17:07 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-11 19:17:07 +0200 |
commit | bf083973efd101e05d75882b63aad9bdfa37dfbc (patch) | |
tree | c07769c2a82e4b5bba8d3d02558eb4c69a531001 /libsowatch/watchserver.h | |
parent | bc899047089079dde323e84a57efe46ce6af653d (diff) | |
download | sowatch-bf083973efd101e05d75882b63aad9bdfa37dfbc.tar.gz sowatch-bf083973efd101e05d75882b63aad9bdfa37dfbc.zip |
store watchlets in model
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r-- | libsowatch/watchserver.h | 10 |
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(); |