API revew sourceRequested() -> sourceRequestEvent()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800401
This commit is contained in:
Anne-Marie Mahfouf 2008-04-24 07:32:46 +00:00
parent b11be618b0
commit 5499de3b0c
2 changed files with 4 additions and 4 deletions

View File

@ -167,7 +167,7 @@ class DataEngine::Private
/*kDebug() << "DataEngine " << engine->objectName()
<< ": could not find DataContainer " << sourceName
<< " will create on request" << endl;*/
if (engine->sourceRequested(sourceName)) {
if (engine->sourceRequestEvent(sourceName)) {
s = source(sourceName, false);
if (s) {
// now we have a source; since it was created on demand, assume
@ -322,7 +322,7 @@ void DataEngine::init()
}
}
bool DataEngine::sourceRequested(const QString &name)
bool DataEngine::sourceRequestEvent(const QString &name)
{
if (d->script) {
return d->script->sourceRequested(name);

View File

@ -229,7 +229,7 @@ class PLASMA_EXPORT DataEngine : public QObject
* opportunity to create one.
*
* The name of the data source (e.g. the source parameter passed into
* setData) must be the same as the name passed to sourceRequested
* setData) must be the same as the name passed to sourceRequestEvent
* otherwise the requesting visualization may not receive notice of a
* data update.
*
@ -243,7 +243,7 @@ class PLASMA_EXPORT DataEngine : public QObject
* @param source the name of the source that has been requested
* @return true if a DataContainer was set up, false otherwise
*/
virtual bool sourceRequested(const QString &source);
virtual bool sourceRequestEvent(const QString &source);
/**
* Called by internal updating mechanisms to trigger the engine