[PATCH] add setAutoDelete/isAutoDelete to KJob

Andreas Pakulat apaku at gmx.de
Sat Jan 5 15:09:22 GMT 2008


Hi,

as I said some time ago KDevelop would like KJob to not delete itself
once the job is done because some of the job subclasses there carry some
metadata which is used after the job is finished to create new jobs:
http://lists.kde.org/?t=119540009900001&r=1&w=2

Attached is a patch for KJob that adds two new functions, setAutoDelete
and isAutoDelete (and a new member in the private class). The flag is
used in kill() and when emitting the result to disable the deleteLater()
calls.

Comments? Objections to commit?

Andreas

-- 
You may be recognized soon.  Hide.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_kjob_autodelete.diff
Type: text/x-diff
Size: 2174 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080105/06516fd1/attachment.diff>


More information about the kde-core-devel mailing list