Whats up with KJob's signals?
ervin at kde.org
Tue May 29 21:57:05 BST 2007
Le mardi 29 mai 2007, Andreas Pakulat a écrit :
> looking at KJob API dox one get the impression that there's no way of
> getting notified when a KJob is finished. However this is possible,
> because KJob does declare a finished() and result() signal. The example
> usage even encourages to use result() (finished() is marked internal).
> However the public kjob.h header puts a private: declaration around
> result() and a few other signals that are not marked internal.
> So I'd like to know: whats up with that? Are the signals just in the
> wrong place?
Nope, that's just a trick to avoid KJob subclasses to be able to do "emit
result()" directly. But that's perfectly fine otherwise, you can connect to
them with no problem.
I notice that this trick make them disappear from the apidox... I wonder if
that's fixable somehow.
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel