Akonadi
transactionsequence.cpp
87 // This can happen if a rollback is in progress, so make sure we don't set the state back to running.
92 if (d->mState == TransactionSequencePrivate::Idle && !property("transactionsDisabled").toBool()) {
142 if (d->mState == TransactionSequencePrivate::Running || d->mState == TransactionSequencePrivate::WaitingForSubjobs) {
Job that begins a session-global transaction.
Definition transactionjobs.h:48
Job that commits a session-global transaction.
Definition transactionjobs.h:103
Job that aborts a session-global transaction.
Definition transactionjobs.h:77
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition transactionsequence.h:55
~TransactionSequence() override
Destroys the transaction sequence.
Definition transactionsequence.cpp:73
void commit()
Commits the transaction as soon as all pending sub-jobs finished successfully.
Definition transactionsequence.cpp:156
bool addSubjob(KJob *job) override
Adds the given job as a subjob to this job.
Definition transactionsequence.cpp:77
TransactionSequence(QObject *parent=nullptr)
Creates a new transaction sequence.
Definition transactionsequence.cpp:68
void setIgnoreJobFailure(KJob *job)
Sets which job of the sequence might fail without rolling back the complete transaction.
Definition transactionsequence.cpp:194
void doStart() override
This method must be reimplemented in the concrete jobs.
Definition transactionsequence.cpp:204
void rollback()
Rolls back the current transaction as soon as possible.
Definition transactionsequence.cpp:223
void setAutomaticCommittingEnabled(bool enable)
Disable automatic committing.
Definition transactionsequence.cpp:217
bool hasSubjobs() const
const QList< KJob * > & subjobs() const
void clearSubjobs()
void setErrorText(const QString &errorText)
void emitResult()
int error() const
void result(KJob *job)
void setError(int errorCode)
QString errorText() const
bool kill(KJob::KillVerbosity verbosity=KJob::Quietly)
Helper integration between Akonadi and Qt.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QVariant property(const char *name) const const
QString arg(Args &&... args) const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.