KJob::Capabilities and KWidgetJobTracker

Matthias Fuchs mat69 at gmx.net
Wed Feb 9 18:21:26 GMT 2011


Am Mittwoch 09 Februar 2011, 19:06:41 schrieb Kevin Ottens:
> On Wednesday 9 February 2011 18:52:57 Matthias Fuchs wrote:
> > I wonder wether setting capabilties for KJobs should be "required".
> > Currently you are presented with a "Pause" button in KWidgetJobTracker,
> > even if the job does _not_ have the Suspendable capability.
> 
> Isn't it more a problem of the tracker not querying the capabilities() when
> it gets passed a job and adapting it's UI accordyingly? That's actually
> one of the intended use cases for the capabilities() method in KJob.
> 

Partially, but what happens if the capabilities change?
E.g. if you are downloading a file you can't always be certain if resuming -- 
and thus suspending -- will work when starting the job.




More information about the kde-core-devel mailing list