akonadi
collectionfetchjob.cpp
101 return QString::fromUtf8(QByteArray(QByteArray("(") + ProtocolHelper::hierarchicalRidToByteArray(mBase) + QByteArray(")")));
108 CollectionFetchJob::CollectionFetchJob(const Collection &collection, Type type, QObject *parent)
133 CollectionFetchJob::CollectionFetchJob(const Collection::List &cols, Type type, QObject *parent)
148 CollectionFetchJob::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)));
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
Sets how many levels of ancestor collections should be included in the retrieval. ...
Definition: collectionfetchscope.cpp:138
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:169
AKONADI_DEPRECATED void includeUnsubscribed(bool include=true)
Include also unsubscribed collections.
Definition: collectionfetchjob.cpp:419
CollectionFetchJob(const Collection &collection, Type type=FirstLevel, QObject *parent=0)
Creates a new collection fetch job.
Definition: collectionfetchjob.cpp:108
Specifies which parts of a collection should be fetched from the Akonadi storage. ...
Definition: collectionfetchscope.h:68
Only list direct sub-collections of the base collection.
Definition: collectionfetchjob.h:63
CollectionFetchScope & fetchScope()
Returns the collection fetch scope.
Definition: collectionfetchjob.cpp:439
List the roots of a list of fetched collections.
Definition: collectionfetchjob.h:65
const T & at(int i) const
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:53
void collectionsReceived(const Akonadi::Collection::List &collections)
This signal is emitted whenever the job has received collections.
const_iterator insert(const T &value)
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
Only retrieve collections for display, taking the local preference and enabled into account...
Definition: collectionfetchscope.h:134
Only retrieve the immediate parent collection.
Definition: collectionfetchscope.h:76
static int parseCollection(const QByteArray &data, Collection &collection, int start=0)
Parse a collection description.
Definition: protocolhelper.cpp:145
int size() const
Only fetch the base collection.
Definition: collectionfetchjob.h:62
Only retrieve collections for indxing, taking the local preference and enabled into account...
Definition: collectionfetchscope.h:136
void append(const T &value)
QString fromUtf8(const char *str, int size)
Collection parentCollection() const
Returns the parent collection of this object.
Definition: entity.cpp:185
bool isEmpty() const
QByteArray number(int n, int base)
Retrieve all ancestors, up to Collection::root()
Definition: collectionfetchscope.h:77
static QByteArray hierarchicalRidToByteArray(const Collection &col)
Converts the given collection's hierarchical RID into a protocol representation.
Definition: protocolhelper.cpp:395
Definition: itemfetchscope.h:29
T & first()
void setFetchScope(const CollectionFetchScope &fetchScope)
Sets the collection fetch scope.
Definition: collectionfetchjob.cpp:433
virtual void doStart()
This method must be reimplemented in the concrete jobs.
Definition: collectionfetchjob.cpp:176
iterator end()
No filtering, retrieve all collections.
Definition: collectionfetchscope.h:133
bool contains(const T &value) const
Definition: kcolumnfilterproxymodel_p.h:27
void insert(int i, const T &value)
AKONADI_DEPRECATED void includeStatistics(bool include=true)
Include also statistics about the collections.
Definition: collectionfetchjob.cpp:426
Definition: job_p.h:31
virtual ~CollectionFetchJob()
Destroys the collection fetch job.
Definition: collectionfetchjob.cpp:165
QString fromLatin1(const char *str, int size)
Only retrieve enabled collections, ignoring the local preference. This is the same as setIncludeUnsub...
Definition: collectionfetchscope.h:137
No ancestor retrieval at all (the default)
Definition: collectionfetchscope.h:75
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
iterator begin()
Only retrieve collections for synchronization, taking the local preference and enabled into account...
Definition: collectionfetchscope.h:135
AKONADI_DEPRECATED void setResource(const QString &resource)
Sets a resource identifier to limit collection listing to one resource.
Definition: collectionfetchjob.cpp:336
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.