Akonadi::ItemDeleteJob Class

class Akonadi::ItemDeleteJob

Job that deletes items from the Akonadi storage. More...

Header: #include <Akonadi/ItemDeleteJob>
CMake: find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)
target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore)
Inherits: Akonadi::Job

Public Functions

ItemDeleteJob(const Akonadi::Tag &tag, QObject *parent = nullptr)
virtual ~ItemDeleteJob() override
Akonadi::Item::List deletedItems() const

Detailed Description

This job removes the given items from the Akonadi storage.

Example:

 const Akonadi::Item item = ...

 ItemDeleteJob *job = new ItemDeleteJob(item);
 connect(job, &KJob::result, this, &MyClass::deletionResult);

Example:

 const Akonadi::Item::List items = ...

 ItemDeleteJob *job = new ItemDeleteJob(items);
 connect(job, &KJob::result, this, &MyClass::deletionResult);

Author: Volker Krause <vkrause@kde.org>

Member Function Documentation

[explicit] ItemDeleteJob::ItemDeleteJob(const Akonadi::Tag &tag, QObject *parent = nullptr)

Creates a new item delete job that deletes all items that have assigned the tag tag.

tag The tag which content should be deleted. parent The parent object.

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

Destroys the item delete job.

Akonadi::Item::List ItemDeleteJob::deletedItems() const

Returns the items passed on in the constructor.