akonadi
collectionfetchjob.cpp
103 CollectionFetchJob::CollectionFetchJob( const Collection &collection, Type type, QObject *parent )
128 CollectionFetchJob::CollectionFetchJob( const Collection::List & cols, Type type, QObject * parent )
143 CollectionFetchJob::CollectionFetchJob( const QList<Collection::Id> & cols, Type type, QObject * parent )
178 // other elements in the list, if type is Recusrive, we could end up with duplicates in the result.
188 // No need to connect to the collectionsReceived signal here. This job is internal. The (aggregated)
196 connect( subJob, SIGNAL(collectionsReceived(Akonadi::Collection::List)), SLOT(subJobCollectionReceived(Akonadi::Collection::List)));
335 QList<Collection::Id>::iterator i = qLowerBound( ancestors.begin(), ancestors.end(), parent.id() );
376 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:134
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:164
void includeUnsubscribed(bool include=true)
Include also unsubscribed collections.
Definition: collectionfetchjob.cpp:406
CollectionFetchJob(const Collection &collection, Type type=FirstLevel, QObject *parent=0)
Creates a new collection fetch job.
Definition: collectionfetchjob.cpp:103
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:426
List the roots of a list of fetched collections.
Definition: collectionfetchjob.h:65
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.
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:290
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:129
Only fetch the base collection.
Definition: collectionfetchjob.h:62
Collection parentCollection() const
Returns the parent collection of this object.
Definition: entity.cpp:187
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:246
void setFetchScope(const CollectionFetchScope &fetchScope)
Sets the collection fetch scope.
Definition: collectionfetchjob.cpp:420
virtual void doStart()
This method must be reimplemented in the concrete jobs.
Definition: collectionfetchjob.cpp:171
void includeStatistics(bool include=true)
Include also statistics about the collections.
Definition: collectionfetchjob.cpp:413
Definition: job_p.h:31
virtual ~CollectionFetchJob()
Destroys the collection fetch job.
Definition: collectionfetchjob.cpp:160
No ancestor retrieval at all (the default)
Definition: collectionfetchscope.h:75
void setResource(const QString &resource)
Sets a resource identifier to limit collection listing to one resource.
Definition: collectionfetchjob.cpp:316
This file is part of the KDE documentation.
Documentation copyright © 1996-2016 The KDE developers.
Generated on Wed Sep 28 2016 20:05:33 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2016 The KDE developers.
Generated on Wed Sep 28 2016 20:05:33 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.