Akonadi::TransactionBeginJob Class
class Akonadi::TransactionBeginJobJob that begins a session-global transaction. More...
| Header: | #include <TransactionBeginJob> |
| CMake: | find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore) |
| Inherits: | Akonadi::TransactionJob |
Public Functions
| TransactionBeginJob(QObject *parent) | |
| virtual | ~TransactionBeginJob() override |
Detailed Description
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.
Author: Volker Krause <vkrause@kde.org>
Member Function Documentation
[explicit] TransactionBeginJob::TransactionBeginJob(QObject *parent)
Creates a new transaction begin job.
parent The parent job or Session, must not be 0.
[override virtual noexcept] TransactionBeginJob::~TransactionBeginJob()
Destroys the transaction begin job.