From aa1c0fd3146b4ed055d181c99d52463afa6bedbb Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 16 Sep 2011 17:47:24 +0200 Subject: Initial import --- declarativewatchlet.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 declarativewatchlet.h (limited to 'declarativewatchlet.h') diff --git a/declarativewatchlet.h b/declarativewatchlet.h new file mode 100644 index 0000000..bd42841 --- /dev/null +++ b/declarativewatchlet.h @@ -0,0 +1,43 @@ +#ifndef DECLARATIVEWATCHLET_H +#define DECLARATIVEWATCHLET_H + +#include +#include +#include +#include "graphicswatchlet.h" + +namespace sowatch +{ + +class DeclarativeWatchWrapper; + +class DeclarativeWatchlet : public GraphicsWatchlet +{ + Q_OBJECT +public: + explicit DeclarativeWatchlet(WatchServer* server, const QString& id); + + void setSource(const QUrl& url); + + void activate(); + void deactivate(); + +signals: + +public slots: + +protected slots: + void handleComponentStatus(QDeclarativeComponent::Status status); + +protected: + static bool _registered; + QDeclarativeEngine* _engine; + QDeclarativeComponent* _component; + QDeclarativeItem* _item; + DeclarativeWatchWrapper* _wrapper; + +}; + +} + +#endif // DECLARATIVEWATCHLET_H -- cgit v1.2.3