summaryrefslogtreecommitdiff
path: root/libsowatch/declarativewatchlet.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/declarativewatchlet.h')
-rw-r--r--libsowatch/declarativewatchlet.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libsowatch/declarativewatchlet.h b/libsowatch/declarativewatchlet.h
index 0dd7e23..087387a 100644
--- a/libsowatch/declarativewatchlet.h
+++ b/libsowatch/declarativewatchlet.h
@@ -18,25 +18,29 @@ class SOWATCH_EXPORT DeclarativeWatchlet : public GraphicsWatchlet
Q_OBJECT
public:
explicit DeclarativeWatchlet(WatchServer* server, const QString& id);
+ ~DeclarativeWatchlet();
void setSource(const QUrl& url);
QDeclarativeEngine* engine();
QDeclarativeContext* rootContext();
-
-protected slots:
- void handleComponentStatus(QDeclarativeComponent::Status status);
+ QDeclarativeItem* rootObject();
protected:
void activate();
void deactivate();
+private:
+ void setRootObject(QDeclarativeItem* item);
+
static bool _registered;
QDeclarativeEngine* _engine;
QDeclarativeComponent* _component;
QDeclarativeItem* _item;
DeclarativeWatchWrapper* _wrapper;
+private slots:
+ void handleComponentStatus(QDeclarativeComponent::Status status);
};
}