API review: DataContainer SIGNAL unused()->becameUnused()

none in extragear/plasma or in playground/base/plasma

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800574
This commit is contained in:
Anne-Marie Mahfouf 2008-04-24 12:22:40 +00:00
parent 75ba09738f
commit 50269beb15
3 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ void DataContainer::checkUsage()
if (d->relays.count() < 1 &&
receivers(SIGNAL(dataUpdated(QString, Plasma::DataEngine::Data))) < 1) {
// DO NOT CALL ANYTHING AFTER THIS LINE AS IT MAY GET DELETED!
emit unused(objectName());
emit becameUnused(objectName());
}
}

View File

@ -109,7 +109,7 @@ class PLASMA_EXPORT DataContainer : public QObject
public Q_SLOTS:
/**
* Check if the DataContainer is still in use.
* If not the signal "unused" will be emitted.
* If not the signal "becameUnused" will be emitted.
* Warning: The DataContainer may be invalid after calling this function.
*/
void checkUsage();
@ -138,7 +138,7 @@ class PLASMA_EXPORT DataContainer : public QObject
/**
* Emitted when this source becomes unused
**/
void unused(const QString& source);
void becameUnused(const QString& source);
/**
* Emitted when the source, usually due to an internal timer firing,

View File

@ -175,7 +175,7 @@ class DataEngine::Private
if (newSource) {
*newSource = true;
}
connect(s, SIGNAL(unused(QString)), engine, SLOT(removeSource(QString)));
connect(s, SIGNAL(becameUnused(QString)), engine, SLOT(removeSource(QString)));
}
}
}