akonadi
#include <transactionjobs.h>

Public Member Functions | |
TransactionBeginJob (QObject *parent) | |
~TransactionBeginJob () | |
![]() | |
Job (QObject *parent=0) | |
virtual | ~Job () |
virtual QString | errorString () const |
void | start () |
Protected Member Functions | |
virtual void | doStart () |
![]() | |
virtual bool | addSubjob (KJob *job) |
virtual void | doHandleResponse (const QByteArray &tag, const QByteArray &data) |
virtual bool | doKill () |
virtual void | doStart ()=0 |
void | emitWriteFinished () |
virtual bool | removeSubjob (KJob *job) |
Additional Inherited Members | |
![]() | |
enum | Error { ConnectionFailed = UserDefinedError , ProtocolVersionMismatch , UserCanceled , Unknown , UserError = UserDefinedError + 42 } |
typedef QList< Job * > | List |
![]() | |
void | aboutToStart (Akonadi::Job *job) |
void | writeFinished (Akonadi::Job *job) |
![]() | |
virtual void | slotResult (KJob *job) |
Detailed Description
Job that begins a session-global transaction.
Sometimes you want to execute a sequence of commands in an atomic way, so that either all commands or none shall be executed. The TransactionBeginJob, TransactionCommitJob and TransactionRollbackJob provide these functionality for the Akonadi Job classes.
- Note
- This will only have an effect when used as a subjob or with a Session.
Definition at line 46 of file transactionjobs.h.
Constructor & Destructor Documentation
◆ TransactionBeginJob()
|
explicit |
Creates a new transaction begin job.
- Parameters
-
parent The parent job or Session, must not be 0.
Definition at line 53 of file transactionjobs.cpp.
◆ ~TransactionBeginJob()
TransactionBeginJob::~TransactionBeginJob | ( | ) |
Destroys the transaction begin job.
Definition at line 59 of file transactionjobs.cpp.
Member Function Documentation
◆ doStart()
|
protectedvirtual |
This method must be reimplemented in the concrete jobs.
It will be called after the job has been started and a connection to the Akonadi backend has been established.
Implements Akonadi::Job.
Definition at line 63 of file transactionjobs.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.