akonadi
collectioncreatejob.cpp
56 if ( d->mCollection.parentCollection().id() < 0 && d->mCollection.parentCollection().remoteId().isEmpty() ) {
virtual void doHandleResponse(const QByteArray &tag, const QByteArray &data)
This method should be reimplemented in the concrete jobs in case you want to handle incoming data...
Definition: collectioncreatejob.cpp:100
void setParentCollection(const Collection &parent)
Set the parent collection of this object.
Definition: entity.cpp:196
static int parseCollection(const QByteArray &data, Collection &collection, int start=0)
Parse a collection description.
Definition: protocolhelper.cpp:129
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition: collection.cpp:85
void setVirtual(bool isVirtual)
Sets whether the collection is virtual or not.
Definition: collection.cpp:253
CollectionCreateJob(const Collection &collection, QObject *parent=0)
Creates a new collection create job.
Definition: collectioncreatejob.cpp:41
void setRemoteRevision(const QString &revision)
Sets the remote revision of the entity.
Definition: entity.cpp:88
virtual ~CollectionCreateJob()
Destroys the collection create job.
Definition: collectioncreatejob.cpp:49
void emitWriteFinished()
Call this method to indicate that this job will not call writeData() again.
Definition: job.cpp:353
virtual void doHandleResponse(const QByteArray &tag, const QByteArray &data)
This method should be reimplemented in the concrete jobs in case you want to handle incoming data...
Definition: job.cpp:332
Definition: job_p.h:31
virtual QByteArray serialized() const =0
Returns a QByteArray representation of the attribute which will be storaged.
Job that creates a new collection in the Akonadi storage.
Definition: collectioncreatejob.h:52
virtual void doStart()
This method must be reimplemented in the concrete jobs.
Definition: collectioncreatejob.cpp:53
static QByteArray cachePolicyToByteArray(const CachePolicy &policy)
Convert a cache policy object into its protocol representation.
Definition: protocolhelper.cpp:66
Collection collection() const
Returns the created collection if the job was executed succesfull.
Definition: collectioncreatejob.cpp:93
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Sep 11 2015 15:24:46 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Sep 11 2015 15:24:46 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.