API review: sourceRequested() -> sourceRequestEvent()

updateSource() -> updateSourceEvent()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801373
This commit is contained in:
Anne-Marie Mahfouf 2008-04-26 12:59:44 +00:00
parent 444c2f6b49
commit 0b12fc3a5e
3 changed files with 6 additions and 6 deletions

View File

@ -326,7 +326,7 @@ void DataEngine::init()
bool DataEngine::sourceRequestEvent(const QString &name) bool DataEngine::sourceRequestEvent(const QString &name)
{ {
if (d->script) { if (d->script) {
return d->script->sourceRequested(name); return d->script->sourceRequestEvent(name);
} else { } else {
return false; return false;
} }
@ -335,7 +335,7 @@ bool DataEngine::sourceRequestEvent(const QString &name)
bool DataEngine::updateSourceEvent(const QString& source) bool DataEngine::updateSourceEvent(const QString& source)
{ {
if (d->script) { if (d->script) {
return d->script->updateSource(source); return d->script->updateSourceEvent(source);
} else { } else {
//kDebug() << "updateSource source" << endl; //kDebug() << "updateSource source" << endl;
return false; //TODO: should this be true to trigger, even needless, updates on every tick? return false; //TODO: should this be true to trigger, even needless, updates on every tick?

View File

@ -51,13 +51,13 @@ DataEngine* DataEngineScript::dataEngine() const
return d->dataEngine; return d->dataEngine;
} }
bool DataEngineScript::sourceRequested(const QString &name) bool DataEngineScript::sourceRequestEvent(const QString &name)
{ {
Q_UNUSED(name) Q_UNUSED(name)
return false; return false;
} }
bool DataEngineScript::updateSource(const QString& source) bool DataEngineScript::updateSourceEvent(const QString& source)
{ {
Q_UNUSED(source) Q_UNUSED(source)
return false; return false;

View File

@ -62,7 +62,7 @@ public:
* @param name the name of the source that should be created * @param name the name of the source that should be created
* @return true if a DataContainer was set up, false otherwise * @return true if a DataContainer was set up, false otherwise
*/ */
virtual bool sourceRequested(const QString &name); virtual bool sourceRequestEvent(const QString &name);
/** /**
* Called when the script should refresh the data contained in a given * Called when the script should refresh the data contained in a given
@ -72,7 +72,7 @@ public:
* @return true if the data was changed, or false if there was no * @return true if the data was changed, or false if there was no
* change or if the change will occur later * change or if the change will occur later
**/ **/
virtual bool updateSource(const QString& source); virtual bool updateSourceEvent(const QString& source);
protected: protected:
void setData(const QString& source, const QString& key, void setData(const QString& source, const QString& key,