API review: clearData() -> removeAllData()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800422
This commit is contained in:
parent
f5cbc92833
commit
5492b75e95
@ -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);
|
DataContainer* s = d->source(source, false);
|
||||||
if (s) {
|
if (s) {
|
||||||
|
@ -286,11 +286,11 @@ class PLASMA_EXPORT DataEngine : public QObject
|
|||||||
void setData(const QString &source, const Data &data);
|
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
|
* @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
|
* Removes a data entry from a source
|
||||||
|
@ -81,7 +81,7 @@ void DataEngineScript::setData(const QString &source, const QVariant &value)
|
|||||||
void DataEngineScript::clearData(const QString& source)
|
void DataEngineScript::clearData(const QString& source)
|
||||||
{
|
{
|
||||||
if (d->dataEngine) {
|
if (d->dataEngine) {
|
||||||
d->dataEngine->clearData(source);
|
d->dataEngine->removeAllData(source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user