Send DataEngine::sources() and DataEngine::serviceForSource() on to the script engine if needed.

svn path=/trunk/KDE/kdelibs/; revision=881713
This commit is contained in:
Simon Edwards 2008-11-08 20:44:03 +00:00
parent 731ccc9f41
commit ccb20997ab

View File

@ -63,13 +63,21 @@ DataEngine::~DataEngine()
QStringList DataEngine::sources() const
{
if (d->script) {
return d->script->sources();
} else {
return d->sources.keys();
}
}
Service *DataEngine::serviceForSource(const QString &source)
{
if (d->script) {
return d->script->serviceForSource(source);
} else {
return new NullService(source, this);
}
}
void DataEngine::connectSource(const QString &source, QObject *visualization,
uint pollingInterval,