akonadi
collectionfetchjob.cpp
101 return QString::fromUtf8(QByteArray(QByteArray("(") + ProtocolHelper::hierarchicalRidToByteArray(mBase) + QByteArray(")")));
148CollectionFetchJob::CollectionFetchJob(const QList<Collection::Id> &cols, Type type, QObject *parent)
183 // other elements in the list, if type is Recusrive, we could end up with duplicates in the result.
193 // No need to connect to the collectionsReceived signal here. This job is internal. The (aggregated)
201 connect(subJob, SIGNAL(collectionsReceived(Akonadi::Collection::List)), SLOT(subJobCollectionReceived(Akonadi::Collection::List)));
355 QList<Collection::Id>::iterator i = qLowerBound(ancestors.begin(), ancestors.end(), parent.id());
396 connect(subJob, SIGNAL(collectionsReceived(Akonadi::Collection::List)), SLOT(subJobCollectionReceived(Akonadi::Collection::List)));
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:54
CollectionFetchJob(const Collection &collection, Type type=FirstLevel, QObject *parent=0)
Creates a new collection fetch job.
Definition: collectionfetchjob.cpp:108
void setFetchScope(const CollectionFetchScope &fetchScope)
Sets the collection fetch scope.
Definition: collectionfetchjob.cpp:433
CollectionFetchScope & fetchScope()
Returns the collection fetch scope.
Definition: collectionfetchjob.cpp:439
@ FirstLevel
Only list direct sub-collections of the base collection.
Definition: collectionfetchjob.h:63
@ NonOverlappingRoots
List the roots of a list of fetched collections.
Definition: collectionfetchjob.h:65
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: collectionfetchjob.cpp:310
AKONADI_DEPRECATED void setResource(const QString &resource)
Sets a resource identifier to limit collection listing to one resource.
Definition: collectionfetchjob.cpp:336
void collectionsReceived(const Akonadi::Collection::List &collections)
This signal is emitted whenever the job has received collections.
virtual ~CollectionFetchJob()
Destroys the collection fetch job.
Definition: collectionfetchjob.cpp:165
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:169
AKONADI_DEPRECATED void includeStatistics(bool include=true)
Include also statistics about the collections.
Definition: collectionfetchjob.cpp:426
virtual void doStart()
This method must be reimplemented in the concrete jobs.
Definition: collectionfetchjob.cpp:176
AKONADI_DEPRECATED void includeUnsubscribed(bool include=true)
Include also unsubscribed collections.
Definition: collectionfetchjob.cpp:419
Specifies which parts of a collection should be fetched from the Akonadi storage.
Definition: collectionfetchscope.h:69
@ Index
Only retrieve collections for indxing, taking the local preference and enabled into account.
Definition: collectionfetchscope.h:136
@ Display
Only retrieve collections for display, taking the local preference and enabled into account.
Definition: collectionfetchscope.h:134
@ Sync
Only retrieve collections for synchronization, taking the local preference and enabled into account.
Definition: collectionfetchscope.h:135
@ Enabled
Only retrieve enabled collections, ignoring the local preference. This is the same as setIncludeUnsub...
Definition: collectionfetchscope.h:137
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
Sets how many levels of ancestor collections should be included in the retrieval.
Definition: collectionfetchscope.cpp:138
Collection parentCollection() const
Returns the parent collection of this object.
Definition: entity.cpp:185
Definition: job_p.h:32
virtual void aboutToFinish()
This method is called right before result() and finished() signals are emitted.
static QByteArray hierarchicalRidToByteArray(const Collection &col)
Converts the given collection's hierarchical RID into a protocol representation.
Definition: protocolhelper.cpp:395
static int parseCollection(const QByteArray &data, Collection &collection, int start=0)
Parse a collection description.
Definition: protocolhelper.cpp:145
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.