API review clearSources() -> removeAllSources()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800387
This commit is contained in:
Anne-Marie Mahfouf 2008-04-24 06:38:14 +00:00
parent 7d1d889a47
commit e435c15f14
3 changed files with 3 additions and 3 deletions

View File

@ -488,7 +488,7 @@ void DataEngine::removeSource(const QString& source)
} }
} }
void DataEngine::clearSources() void DataEngine::removeAllSources()
{ {
QMutableHashIterator<QString, Plasma::DataContainer*> it(d->sources); QMutableHashIterator<QString, Plasma::DataContainer*> it(d->sources);
while (it.hasNext()) { while (it.hasNext()) {

View File

@ -361,7 +361,7 @@ class PLASMA_EXPORT DataEngine : public QObject
/** /**
* Removes all data sources * Removes all data sources
**/ **/
void clearSources(); void removeAllSources();
/** /**
* Sets whether or not this engine is valid, e.g. can be used. * Sets whether or not this engine is valid, e.g. can be used.

View File

@ -124,7 +124,7 @@ void DataEngineScript::setPollingInterval(uint frequency)
void DataEngineScript::clearSources() void DataEngineScript::clearSources()
{ {
if (d->dataEngine) { if (d->dataEngine) {
d->dataEngine->clearSources(); d->dataEngine->removeAllSources();
} }
} }