Akonadi::ItemMoveJob Class
class Akonadi::ItemMoveJobJob that moves an item into a different collection in the Akonadi storage. More...
| Header: | #include <Akonadi/ItemMoveJob> |
| CMake: | find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore) |
| Inherits: | Akonadi::Job |
Public Functions
| ItemMoveJob(const Akonadi::Item &item, const Akonadi::Collection &destination, QObject *parent = nullptr) | |
| ItemMoveJob(const Akonadi::Item::List &items, const Akonadi::Collection &destination, QObject *parent = nullptr) | |
| virtual | ~ItemMoveJob() override |
| Akonadi::Collection | destinationCollection() const |
| Akonadi::Item::List | items() const |
Detailed Description
This job takes an item and moves it to a collection in the Akonadi storage.
Akonadi::Item item = ... Akonadi::Collection collection = ... Akonadi::ItemMoveJob *job = new Akonadi::ItemMoveJob( item, collection ); connect(job, &KJob::result, this, &MyClass::moveResult);
Author: Volker Krause <vkrause@kde.org>
Member Function Documentation
ItemMoveJob::ItemMoveJob(const Akonadi::Item &item, const Akonadi::Collection &destination, QObject *parent = nullptr)
Move the given item into the given collection.
item The item to move. destination The destination collection. parent The parent object.
ItemMoveJob::ItemMoveJob(const Akonadi::Item::List &items, const Akonadi::Collection &destination, QObject *parent = nullptr)
Move the given items into destination.
items A list of items to move. destination The destination collection. parent The parent object.
[override virtual noexcept] ItemMoveJob::~ItemMoveJob()
Destroys the item move job.
Akonadi::Collection ItemMoveJob::destinationCollection() const
Returns the destination collection.
Akonadi::Item::List ItemMoveJob::items() const
Returns the list of items that where passed in the constructor.