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/watchlet.h | |
parent | bc899047089079dde323e84a57efe46ce6af653d (diff) | |
download | sowatch-bf083973efd101e05d75882b63aad9bdfa37dfbc.tar.gz sowatch-bf083973efd101e05d75882b63aad9bdfa37dfbc.zip |
store watchlets in model
Diffstat (limited to 'libsowatch/watchlet.h')
-rw-r--r-- | libsowatch/watchlet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsowatch/watchlet.h b/libsowatch/watchlet.h index f32d495..f994447 100644 --- a/libsowatch/watchlet.h +++ b/libsowatch/watchlet.h @@ -2,6 +2,7 @@ #define SOWATCH_WATCHLET_H #include <QtCore/QObject> +#include <QtDeclarative/QtDeclarative> #include "sowatch_global.h" namespace sowatch @@ -9,6 +10,7 @@ namespace sowatch class Watch; class WatchServer; +class WatchletsModel; class Notification; class NotificationsModel; @@ -19,6 +21,7 @@ class SOWATCH_EXPORT Watchlet : public QObject Q_PROPERTY(bool active READ isActive NOTIFY activeChanged) public: + Watchlet(); Watchlet(Watch *watch, const QString& id); ~Watchlet(); @@ -33,6 +36,7 @@ public: virtual void deactivate(); // Some properties + virtual void setWatchletsModel(WatchletsModel *model); virtual void setNotificationsModel(NotificationsModel *model); virtual bool handlesNotification(Notification* notification) const; @@ -53,4 +57,6 @@ private: } +QML_DECLARE_TYPE(sowatch::Watchlet) + #endif // SOWATCH_WATCHLET_H |