Akonadi
collectioncreatejob.cpp
48 if (d->mCollection.parentCollection().id() < 0 && d->mCollection.parentCollection().remoteId().isEmpty()) {
63 cmd->setDisplayPref(ProtocolHelper::listPreference(d->mCollection.localListPreference(Collection::ListDisplay)));
64 cmd->setSyncPref(ProtocolHelper::listPreference(d->mCollection.localListPreference(Collection::ListSync)));
65 cmd->setIndexPref(ProtocolHelper::listPreference(d->mCollection.localListPreference(Collection::ListIndex)));
Job that creates a new collection in the Akonadi storage.
Definition collectioncreatejob.h:41
Collection collection() const
Returns the created collection if the job was executed successfully.
Definition collectioncreatejob.cpp:78
CollectionCreateJob(const Collection &collection, QObject *parent=nullptr)
Creates a new collection create job.
Definition collectioncreatejob.cpp:33
bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
Definition collectioncreatejob.cpp:85
~CollectionCreateJob() override
Destroys the collection create job.
Definition collectioncreatejob.cpp:41
void doStart() override
This method must be reimplemented in the concrete jobs.
Definition collectioncreatejob.cpp:45
void setVirtual(bool isVirtual)
Sets whether the collection is virtual or not.
Definition collection.cpp:352
void setParentCollection(const Collection &parent)
Set the parent collection of this object.
Definition collection.cpp:204
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition collection.cpp:221
void setRemoteId(const QString &id)
Sets the remote id of the collection.
Definition collection.cpp:101
void setRemoteRevision(const QString &revision)
Sets the remote revision of the collection.
Definition collection.cpp:111
virtual bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response)
This method should be reimplemented in the concrete jobs in case you want to handle incoming data.
Definition job.cpp:381
void emitWriteFinished()
Call this method to indicate that this job will not call writeData() again.
Definition job.cpp:409
void setErrorText(const QString &errorText)
void emitResult()
void setError(int errorCode)
QString i18n(const char *text, const TYPE &arg...)
Helper integration between Akonadi and Qt.
QString arg(Args &&... args) const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.