API review: clearData() -> removeAllData()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800422
This commit is contained in:
Anne-Marie Mahfouf 2008-04-24 08:10:30 +00:00
parent f5cbc92833
commit 5492b75e95
3 changed files with 4 additions and 4 deletions

View File

@ -387,7 +387,7 @@ void DataEngine::setData(const QString &source, const Data &data)
}
void DataEngine::clearData(const QString& source)
void DataEngine::removeAllData(const QString& source)
{
DataContainer* s = d->source(source, false);
if (s) {

View File

@ -286,11 +286,11 @@ class PLASMA_EXPORT DataEngine : public QObject
void setData(const QString &source, const Data &data);
/**
* Clears all the data associated with a data source.
* Removes all the data associated with a data source.
*
* @param source the name of the data source
**/
void clearData(const QString& source);
void removeAllData(const QString& source);
/**
* Removes a data entry from a source

View File

@ -81,7 +81,7 @@ void DataEngineScript::setData(const QString &source, const QVariant &value)
void DataEngineScript::clearData(const QString& source)
{
if (d->dataEngine) {
d->dataEngine->clearData(source);
d->dataEngine->removeAllData(source);
}
}