diff --git a/src/plasma/dataengine.cpp b/src/plasma/dataengine.cpp index 62720294f..b872e1f25 100644 --- a/src/plasma/dataengine.cpp +++ b/src/plasma/dataengine.cpp @@ -87,6 +87,11 @@ Service *DataEngine::serviceForSource(const QString &source) return new NullService(source, this); } +KPluginInfo DataEngine::pluginInfo() const +{ + return d->dataEngineDescription; +} + void DataEngine::connectSource(const QString &source, QObject *visualization, uint pollingInterval, Plasma::IntervalAlignment intervalAlignment) const diff --git a/src/plasma/dataengine.h b/src/plasma/dataengine.h index 9075a7c3b..746ac941a 100644 --- a/src/plasma/dataengine.h +++ b/src/plasma/dataengine.h @@ -106,6 +106,11 @@ class PLASMA_EXPORT DataEngine : public QObject */ Q_INVOKABLE virtual Service *serviceForSource(const QString &source); + /** + * @return description of the plugin that implements this DataEngine + */ + KPluginInfo pluginInfo() const; + /** * Returns the engine name for the DataEngine */