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:
parent
75ba09738f
commit
50269beb15
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user