On March 19, 2010, Rob Hasselbaum wrote: > Actually, the dataUpdated slot won't get invoked anyway if the applet > isn't connected to that source, right?
that's correct. there are two kinds of linespans for sources: * ones the engine creates internally; these are up to the engine to manage e.g. by calling removeSource manually when they should be removed. the hotplug engine is a perfect example of such a case: when a visualization asks for the hotplug engine it wants to see all hotuplug items and be updated when new ones come (or old ones go away). so the hotplug engine does all the creation and destruction of the sources itself. * ones the engine creates in sourceRequestEvent. this represents a dynamic response to an external request. as such, DataEngine removes the source as soon as all the requests for that source are removed. once a source ceases to exist, then dataUpdated will no longer be called and it will no longer appear in the internal sources dictionary (and therefore the default implementation of DataEngine::sources() either). -- Aaron J. Seigo humru othro a kohnu se GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 KDE core developer sponsored by Qt Development Frameworks _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel