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,12 +63,20 @@ DataEngine::~DataEngine()
QStringList DataEngine::sources() const
{
return d->sources.keys();
if (d->script) {
return d->script->sources();
} else {
return d->sources.keys();
}
}
Service *DataEngine::serviceForSource(const QString &source)
{
return new NullService(source, this);
if (d->script) {
return d->script->serviceForSource(source);
} else {
return new NullService(source, this);
}
}
void DataEngine::connectSource(const QString &source, QObject *visualization,