missing method

svn path=/trunk/KDE/kdelibs/; revision=1128639
This commit is contained in:
Aaron J. Seigo 2010-05-19 20:04:21 +00:00
parent 615aef4915
commit ae4caf4a5a
2 changed files with 16 additions and 0 deletions

View File

@ -109,6 +109,13 @@ void DataEngineScript::setData(const QString &source, const QVariant &value)
} }
} }
void DataEngineScript::setData(const QString &source, const DataEngine::Data &values)
{
if (d->dataEngine) {
d->dataEngine->setData(source, values);
}
}
void DataEngineScript::removeAllData(const QString &source) void DataEngineScript::removeAllData(const QString &source)
{ {
if (d->dataEngine) { if (d->dataEngine) {

View File

@ -119,6 +119,15 @@ protected:
void setData(const QString &source, const QString &key, void setData(const QString &source, const QString &key,
const QVariant &value); const QVariant &value);
void setData(const QString &source, const QVariant &value); void setData(const QString &source, const QVariant &value);
/**
* Adds a set of values to a source
* @param source the name of the source to set the data on
* @values a key/value collection to add to the source
* @since 4.5
*/
void setData(const QString &source, const DataEngine::Data &values);
void removeAllData(const QString &source); void removeAllData(const QString &source);
void removeData(const QString &source, const QString &key); void removeData(const QString &source, const QString &key);
void setMaxSourceCount(uint limit); void setMaxSourceCount(uint limit);