akonadi
transactionsequence.cpp
93 //This can happen if a rollback is in progress, so make sure we don't set the state back to running.
98 if (d->mState == TransactionSequencePrivate::Idle && !property("transactionsDisabled").toBool()) {
99 d->mState = TransactionSequencePrivate::Running; // needs to be set before creating the transaction job to avoid infinite recursion
135 // cancel all subjobs in case someone else is listening (such as ItemSync), but without notifying ourselves again
142 if (d->mState == TransactionSequencePrivate::Running || d->mState == TransactionSequencePrivate::WaitingForSubjobs) {
void rollback()
Rolls back the current transaction as soon as possible.
Definition: transactionsequence.cpp:215
Job that commits a session-global transaction.
Definition: transactionjobs.h:113
TransactionSequence(QObject *parent=0)
Creates a new transaction sequence.
Definition: transactionsequence.cpp:74
void setAutomaticCommittingEnabled(bool enable)
Disable automatic committing.
Definition: transactionsequence.cpp:209
bool addSubjob(KJob *job)
Adds the given job as a subjob to this job.
Definition: transactionsequence.cpp:83
Job that aborts a session-global transaction.
Definition: transactionjobs.h:81
virtual bool addSubjob(KJob *job)
Adds the given job as a subjob to this job.
Definition: job.cpp:328
void setIgnoreJobFailure(KJob *job)
Sets which job of the sequence might fail without rolling back the complete transaction.
Definition: transactionsequence.cpp:186
void commit()
Commits the transaction as soon as all pending sub-jobs finished successfully.
Definition: transactionsequence.cpp:154
Definition: itemfetchscope.h:29
void doStart()
This method must be reimplemented in the concrete jobs.
Definition: transactionsequence.cpp:196
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition: transactionsequence.h:69
Definition: job_p.h:31
Job that begins a session-global transaction.
Definition: transactionjobs.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.