# class KCompositeJob

###

Module | kdecore
Namespace |
Class | KCompositeJob
Inherits | KJob

The base class for all jobs able to be composed of one or more subjobs.

### methods

- KCompositeJob (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0

  Creates a new KCompositeJob object.

  parent - the parent QObject

- KCompositeJob (dd, parent)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  dd | KCompositeJobPrivate |
  parent | QObject |

- KCompositeJob (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject | 0

- addSubjob (job)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  job | KJob |

  Add a job that has to be finished before a result is emitted. This has obviously to be called before the the result has been emitted by the job.

  job - the subjob to add Returns true if the job has been added correctly, false otherwise

- clearSubjobs ( )

  returns Nothing

  Clears the list of subjobs.

- hasSubjobs ( )

  returns bool

  Checks if this job has subjobs running.

  Returns true if we still have subjobs running, false otherwise

- removeSubjob (job)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  job | KJob |

  Mark a sub job as being done.

  job - the subjob to remove Returns true if the job has been removed correctly, false otherwise

- slotInfoMessage (job, plain, rich)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  job | KJob |
  plain | QString |
  rich | QString |

  Forward signal from subjob.

  job - the subjob

  plain - the info message in plain text version

  rich - the info message in rich text version

  See also infoMessage()

- slotResult (job)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  job | KJob |

  Called whenever a subjob finishes. Default implementation checks for errors and propagates to parent job, and in all cases it calls removeSubjob.

  job - the subjob

- subjobs ( )

  returns QList<KJob

  Retrieves the list of the subjobs.

  Returns the full list of sub jobs