# class TransactionSequence

###

Module | akonadi
Namespace | Akonadi
Class | TransactionSequence
Inherits | Akonadi::Job

Base class for jobs that need to run a sequence of sub-jobs in a transaction. As soon as the first subjob is added, the transaction is started. As soon as the last subjob has successfully finished, the transaction is committed. If any subjob fails, the transaction is rolled back.

Alternatively, a TransactionSequence object can be used as a parent object for a set of jobs to achieve the same behaviour without subclassing.

### methods

- TransactionSequence (parent)

  returns ctor

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

  Creates a new transaction job sequence.

  parent - The parent object.

- addSubjob (job)

  returns bool

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

- commit ( )

  returns Nothing

  Commit the transaction as soon as all pending sub-jobs finished successfully.

- doStart ( )

  returns Nothing

- slotResult (job)

  returns Nothing

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