diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-10-02 16:39:40 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-10-02 16:39:40 +0200 |
commit | 0a656b75f3fc80f13424db0e7ec403dff28a366e (patch) | |
tree | 23f72a2fde3f718048b49d9806ded3d315d50a80 /libsowatch/declarativewatchwrapper.h | |
parent | d9f132f3d5bf41ee4f30e7ea2bd1b61120fa29b7 (diff) | |
download | sowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.tar.gz sowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.zip |
new notifications list, time syncing
Diffstat (limited to 'libsowatch/declarativewatchwrapper.h')
-rw-r--r-- | libsowatch/declarativewatchwrapper.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/libsowatch/declarativewatchwrapper.h b/libsowatch/declarativewatchwrapper.h index 583b2d2..8d4fd7d 100644 --- a/libsowatch/declarativewatchwrapper.h +++ b/libsowatch/declarativewatchwrapper.h @@ -2,24 +2,30 @@ #define SOWATCH_DECLARATIVEWATCHWRAPPER_H #include <QtDeclarative/QtDeclarative> +#include "sowatch_global.h" namespace sowatch { +class WatchServer; class Watch; class DeclarativeWatchlet; +class Notification; -class DeclarativeWatchWrapper : public QObject +class SOWATCH_EXPORT DeclarativeWatchWrapper : public QObject { Q_OBJECT Q_PROPERTY(QString model READ model CONSTANT) Q_PROPERTY(bool active READ active NOTIFY activeChanged) + Q_PROPERTY(QList<QObject*> notifications READ notifications NOTIFY notificationsChanged) public: - explicit DeclarativeWatchWrapper(Watch *watch, QObject *parent = 0); + explicit DeclarativeWatchWrapper(WatchServer *server, Watch *watch, QObject *parent = 0); - Q_INVOKABLE QString model() const; - Q_INVOKABLE bool active() const; + QString model() const; + bool active() const; + + QList<QObject*> notifications() const; public slots: void vibrate(int msecs); @@ -29,8 +35,10 @@ signals: void buttonReleased(int button); void activeChanged(); + void notificationsChanged(); -protected: +private: + WatchServer *_server; Watch* _watch; bool _active; |