Akonadi::TransactionRollbackJob Class

class Akonadi::TransactionRollbackJob

Job that aborts a session-global transaction. More...

Header: #include <TransactionRollbackJob>
CMake: find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)
target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore)
Inherits: Akonadi::TransactionJob

Public Functions

TransactionRollbackJob(QObject *parent)
virtual ~TransactionRollbackJob() override

Detailed Description

If a job inside a TransactionBeginJob has been failed, the TransactionRollbackJob can be used to rollback all changes done by these jobs.

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] TransactionRollbackJob::TransactionRollbackJob(QObject *parent)

Creates a new transaction rollback job. The parent must be the same parent as for the TransactionBeginJob.

parent The parent job or Session, must not be 0.

[override virtual noexcept] TransactionRollbackJob::~TransactionRollbackJob()

Destroys the transaction rollback job.