akonadi
#include <tagcreatejob.h>

Public Member Functions | |
TagCreateJob (const Tag &tag, QObject *parent=0) | |
void | setMergeIfExisting (bool merge) |
Tag | tag () const |
![]() | |
Job (QObject *parent=0) | |
virtual | ~Job () |
virtual QString | errorString () const |
void | start () |
Protected Member Functions | |
virtual void | doHandleResponse (const QByteArray &tag, const QByteArray &data) |
virtual void | doStart () |
![]() | |
virtual bool | addSubjob (KJob *job) |
virtual bool | doKill () |
void | emitWriteFinished () |
virtual bool | removeSubjob (KJob *job) |
Additional Inherited Members | |
![]() | |
enum | Error { ConnectionFailed = UserDefinedError, ProtocolVersionMismatch, UserCanceled, Unknown, UserError = UserDefinedError + 42 } |
typedef QList< Job * > | List |
![]() | |
void | aboutToStart (Akonadi::Job *job) |
void | writeFinished (Akonadi::Job *job) |
![]() | |
virtual void | slotResult (KJob *job) |
Detailed Description
Job that creates a new tag in the Akonadi storage.
- Since
- 4.13
Definition at line 34 of file tagcreatejob.h.
Constructor & Destructor Documentation
Creates a new tag create job.
- Parameters
-
tag The tag to create. parent The parent object.
Definition at line 41 of file tagcreatejob.cpp.
Member Function Documentation
|
protectedvirtual |
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
It will be called on received data from the backend. The default implementation does nothing.
- Parameters
-
tag The tag of the corresponding command, empty if this is an untagged response. data The received data.
Reimplemented from Akonadi::Job.
Definition at line 99 of file tagcreatejob.cpp.
|
protectedvirtual |
This method must be reimplemented in the concrete jobs.
It will be called after the job has been started and a connection to the Akonadi backend has been established.
Implements Akonadi::Job.
Definition at line 54 of file tagcreatejob.cpp.
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.
Definition at line 48 of file tagcreatejob.cpp.
Tag TagCreateJob::tag | ( | ) | const |
Returns the created tag with the new unique id, or an invalid tag if the job failed.
Definition at line 118 of file tagcreatejob.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.