add DataEngine::pluginInfo()

This commit is contained in:
Marco Martin 2013-04-03 20:41:59 +02:00
parent 20a4e6ca43
commit afe7a925d4
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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
*/