API review updateSource() -> updateSourceEvent()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800417
This commit is contained in:
parent
5499de3b0c
commit
72ef8e764b
@ -306,7 +306,7 @@ void DataEngine::internalUpdateSource(DataContainer* source)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updateSource(source->objectName())) {
|
if (updateSourceEvent(source->objectName())) {
|
||||||
d->queueUpdate();
|
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) {
|
if (d->script) {
|
||||||
return d->script->updateSource(source);
|
return d->script->updateSource(source);
|
||||||
@ -556,7 +556,7 @@ void DataEngine::timerEvent(QTimerEvent *event)
|
|||||||
QHashIterator<QString, Plasma::DataContainer*> it(d->sources);
|
QHashIterator<QString, Plasma::DataContainer*> it(d->sources);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
updateSource(it.key());
|
updateSourceEvent(it.key());
|
||||||
}
|
}
|
||||||
checkForUpdates();
|
checkForUpdates();
|
||||||
}
|
}
|
||||||
|
@ -255,7 +255,7 @@ class PLASMA_EXPORT DataEngine : public QObject
|
|||||||
* @return true if the data was changed, or false if there was no
|
* @return true if the data was changed, or false if there was no
|
||||||
* change or if the change will occur later
|
* 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
|
* 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,
|
* Sets up an internal update tick for all data sources. On every update,
|
||||||
* updateSource will be called for each applicable source.
|
* updateSourceEvent will be called for each applicable source.
|
||||||
* @see updateSource
|
* @see updateSourceEvent
|
||||||
*
|
*
|
||||||
* @param frequency the time, in milliseconds, between updates. A value of 0
|
* @param frequency the time, in milliseconds, between updates. A value of 0
|
||||||
* will stop internally triggered updates.
|
* will stop internally triggered updates.
|
||||||
|
Loading…
Reference in New Issue
Block a user