#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); protected slots: void handleComponentStatus(QDeclarativeComponent::Status status); protected: void activate(); void deactivate(); static bool _registered; QDeclarativeEngine* _engine; QDeclarativeComponent* _component; QDeclarativeItem* _item; DeclarativeWatchWrapper* _wrapper; }; } #endif // DECLARATIVEWATCHLET_H