Runcontroller KJobs question

Andreas Pakulat apaku at gmx.de
Tue Feb 17 19:58:38 UTC 2009


On 17.02.09 20:56:07, Vladimir Prus wrote:
> the runcontroller passes an KJob* to IRunProvider::execute. In case of 
> debugger, I want to mark this job as done when debugger exits, either
> normally or due to GDB crash. How can I do that, given that all
> of KJob methods of interest are protected?

Well, at some point that job is created and that is most probably not a
KJob, but  some subclass. That subclass should call emitResult() when
its "done" and also set any errors via setError and setErrorText before
that.

Just look at projectbuilders/cmakebuilder/cmakejob.cpp for a relatively
simple example.

Andreas
 
-- 
Your analyst has you mixed up with another patient.  Don't believe a
thing he tells you.




More information about the KDevelop-devel mailing list