Akonadi::CollectionMoveJob Class

class Akonadi::CollectionMoveJob

Job that moves a collection in the Akonadi storage to a new parent collection. More...

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

Public Functions

CollectionMoveJob(const Akonadi::Collection &collection, const Akonadi::Collection &destination, QObject *parent = nullptr)

Detailed Description

This job moves an existing collection to a new parent collection.

 const Akonadi::Collection collection = ...
 const Akonadi::Collection newParent = ...

 Akonadi::CollectionMoveJob *job = new Akonadi::CollectionMoveJob( collection, newParent );
 connect(job, &KJob::result, this, &MyClass::moveResult);

Author: Volker Krause <vkrause@kde.org>

Member Function Documentation

CollectionMoveJob::CollectionMoveJob(const Akonadi::Collection &collection, const Akonadi::Collection &destination, QObject *parent = nullptr)

Creates a new collection move job for the given collection and destination

collection The collection to move. destination The destination collection where collection should be moved to. parent The parent object.