From 8d7e06a09d8a629ad7aeac189cf85fb0af853297 Mon Sep 17 00:00:00 2001 From: "Richard J. Moore" Date: Sun, 5 Aug 2007 12:39:13 +0000 Subject: [PATCH] - Steps towards dataengine access from scripts svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696620 --- applet.h | 2 +- dataengine.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/applet.h b/applet.h index e4838f2e8..f06e04ed1 100644 --- a/applet.h +++ b/applet.h @@ -147,7 +147,7 @@ class PLASMA_EXPORT Applet : public Widget * or an invalid data engine if the requested engine * could not be loaded */ - DataEngine* dataEngine(const QString& name) const; + Q_INVOKABLE DataEngine* dataEngine(const QString& name) const; /** * Accessor for the associated Package object if any. diff --git a/dataengine.h b/dataengine.h index 4d00a0938..51bb97093 100644 --- a/dataengine.h +++ b/dataengine.h @@ -88,7 +88,7 @@ class PLASMA_EXPORT DataEngine : public QObject * @param source the name of the data source * @param visualization the object to connect the data source to **/ - void connectSource(const QString& source, QObject* visualization) const; + Q_INVOKABLE void connectSource(const QString& source, QObject* visualization) const; /** * Disconnects a source to an object that was receiving data updates. @@ -96,7 +96,7 @@ class PLASMA_EXPORT DataEngine : public QObject * @param source the name of the data source * @param visualization the object to connect the data source to **/ - void disconnectSource(const QString& source, QObject* visualization) const; + Q_INVOKABLE void disconnectSource(const QString& source, QObject* visualization) const; /** * Connects all sources to an object for data updates. The object must @@ -109,7 +109,7 @@ class PLASMA_EXPORT DataEngine : public QObject * * @param visualization the object to connect the data source to **/ - void connectAllSources(QObject* viualization) const; + Q_INVOKABLE void connectAllSources(QObject* viualization) const; /** * Gets the Data associated with a data source. @@ -121,7 +121,7 @@ class PLASMA_EXPORT DataEngine : public QObject * @return the Data associated with the source; if the source doesn't * exist an empty data set is returned **/ - Data query(const QString& source) const; + Q_INVOKABLE Data query(const QString& source) const; /** * Reference counting method. Calling this method increases the count