Akonadi::TagCreateJob Class
class Akonadi::TagCreateJobJob that creates a new tag in the Akonadi storage. More...
| Header: | #include <Akonadi/TagCreateJob> |
| CMake: | find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore) |
| Inherits: | Akonadi::Job |
Public Functions
| TagCreateJob(const Akonadi::Tag &tag, QObject *parent = nullptr) | |
| void | setMergeIfExisting(bool merge) |
| Akonadi::Tag | tag() const |
Detailed Description
Member Function Documentation
[explicit] TagCreateJob::TagCreateJob(const Akonadi::Tag &tag, QObject *parent = nullptr)
Creates a new tag create job.
tag The tag to create. parent The parent object.
void TagCreateJob::setMergeIfExisting(bool merge)
Merges the tag by GID if it is already existing, and returns the merged version. This is false by default.
Note that the returned tag does not contain attributes.
Akonadi::Tag TagCreateJob::tag() const
Returns the created tag with the new unique id, or an invalid tag if the job failed.