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:
parent
731ccc9f41
commit
ccb20997ab
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user