akonadi
Akonadi::TransactionBeginJob Class Reference
Job that begins a session-global transaction. More...
#include <transactionjobs.h>

Public Member Functions | |
TransactionBeginJob (QObject *parent) | |
~TransactionBeginJob () | |
Protected Member Functions | |
virtual void | doStart () |
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::TransactionBeginJob | ( | QObject * | parent | ) | [explicit] |
Creates a new transaction begin job.
- Parameters:
-
parent The parent job or Session, must not be 0.
Definition at line 54 of file transactionjobs.cpp.
TransactionBeginJob::~TransactionBeginJob | ( | ) |
Destroys the transaction begin job.
Definition at line 60 of file transactionjobs.cpp.
Member Function Documentation
virtual void Akonadi::TransactionBeginJob::doStart | ( | ) | [protected, virtual] |
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.
The documentation for this class was generated from the following files: