API review: remove setSourceLimit()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800552
This commit is contained in:
Anne-Marie Mahfouf 2008-04-24 11:46:06 +00:00
parent 7b8547aed8
commit fb85325fe6
4 changed files with 0 additions and 32 deletions

View File

@ -417,21 +417,6 @@ void DataEngine::addSource(DataContainer* source)
emit sourceAdded(source->objectName()); emit sourceAdded(source->objectName());
} }
void DataEngine::setSourceLimit(uint limit)
{
if (d->limit == limit) {
return;
}
d->limit = limit;
if (d->limit > 0) {
d->trimQueue();
} else {
d->sourceQueue.clear();
}
}
void DataEngine::setMinimumPollingInterval(int minimumMs) void DataEngine::setMinimumPollingInterval(int minimumMs)
{ {
d->minPollingInterval = minimumMs; d->minPollingInterval = minimumMs;

View File

@ -307,15 +307,6 @@ class PLASMA_EXPORT DataEngine : public QObject
**/ **/
void addSource(DataContainer* source); void addSource(DataContainer* source);
/**
* Sets an upper limit on the number of data sources to keep in this engine.
* If the limit is exceeded, then the oldest data source, as defined by last
* update, is dropped.
*
* @param limit the maximum number of sources to keep active
**/
void setSourceLimit(uint limit);
/** /**
* Sets the minimum amount of time, in milliseconds, that must pass between * Sets the minimum amount of time, in milliseconds, that must pass between
* successive updates of data. This can help prevent too many updates happening * successive updates of data. This can help prevent too many updates happening

View File

@ -92,13 +92,6 @@ void DataEngineScript::removeData(const QString& source, const QString& key)
} }
} }
void DataEngineScript::setSourceLimit(uint limit)
{
if (d->dataEngine) {
d->dataEngine->setSourceLimit(limit);
}
}
void DataEngineScript::setMinimumPollingInterval(int minimumMs) void DataEngineScript::setMinimumPollingInterval(int minimumMs)
{ {
if (d->dataEngine) { if (d->dataEngine) {

View File

@ -80,7 +80,6 @@ protected:
void setData(const QString &source, const QVariant &value); void setData(const QString &source, const QVariant &value);
void clearData(const QString& source); void clearData(const QString& source);
void removeData(const QString& source, const QString& key); void removeData(const QString& source, const QString& key);
void setSourceLimit(uint limit);
void setMinimumPollingInterval(int minimumMs); void setMinimumPollingInterval(int minimumMs);
int minimumPollingInterval() const; int minimumPollingInterval() const;
void setPollingInterval(uint frequency); void setPollingInterval(uint frequency);