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:195
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:93
void setVirtual(bool isVirtual)
Sets whether the collection is virtual or not.
Definition: collection.cpp:266
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:87
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:359
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:338
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 successfully.
Definition: collectioncreatejob.cpp:93
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.