API review updateSource() -> updateSourceEvent()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800417
This commit is contained in:
Anne-Marie Mahfouf 2008-04-24 08:01:18 +00:00
parent 5499de3b0c
commit 72ef8e764b
2 changed files with 6 additions and 6 deletions

View File

@ -306,7 +306,7 @@ void DataEngine::internalUpdateSource(DataContainer* source)
return;
}
if (updateSource(source->objectName())) {
if (updateSourceEvent(source->objectName())) {
d->queueUpdate();
}
}
@ -331,7 +331,7 @@ bool DataEngine::sourceRequestEvent(const QString &name)
}
}
bool DataEngine::updateSource(const QString& source)
bool DataEngine::updateSourceEvent(const QString& source)
{
if (d->script) {
return d->script->updateSource(source);
@ -556,7 +556,7 @@ void DataEngine::timerEvent(QTimerEvent *event)
QHashIterator<QString, Plasma::DataContainer*> it(d->sources);
while (it.hasNext()) {
it.next();
updateSource(it.key());
updateSourceEvent(it.key());
}
checkForUpdates();
}

View File

@ -255,7 +255,7 @@ class PLASMA_EXPORT DataEngine : public QObject
* @return true if the data was changed, or false if there was no
* change or if the change will occur later
**/
virtual bool updateSource(const QString& source);
virtual bool updateSourceEvent(const QString& source);
/**
* Sets a value for a data source. If the source
@ -336,8 +336,8 @@ class PLASMA_EXPORT DataEngine : public QObject
/**
* Sets up an internal update tick for all data sources. On every update,
* updateSource will be called for each applicable source.
* @see updateSource
* updateSourceEvent will be called for each applicable source.
* @see updateSourceEvent
*
* @param frequency the time, in milliseconds, between updates. A value of 0
* will stop internally triggered updates.