class KJob


abstract class

Table of contents
Modules
kdecore Classes
All Classes
Module kdecore
Namespace global
Class KJob
Inherits QObject

The base class for all jobs. For all jobs created in an application, the code looks like

KJob * job = someoperation( some parameters );
connect( job, SIGNAL( result( KJob * ) ),
this, SLOT( slotResult( KJob * ) ) );
job->start();
(other connects, specific to the job)

And slotResult is usually at least:

if ( job->error() )
doSomething();

With the synchronous interface the code looks like

KJob *job = someoperation( some parameters );
if ( !job->exec() )
{
// An error occurred
}
else
{
// Do something
}



enums

enum details

methods