akonadi
entitytreemodel_p.h
74 void fetchCollections(const Collection &collection, CollectionFetchJob::Type type = CollectionFetchJob::FirstLevel);
75 void fetchCollections(const Collection::List &collections, CollectionFetchJob::Type type = CollectionFetchJob::FirstLevel);
86 void monitoredCollectionStatisticsChanged(Akonadi::Collection::Id, const Akonadi::CollectionStatistics &);
87 void monitoredCollectionMoved(const Akonadi::Collection &, const Akonadi::Collection &, const Akonadi::Collection &);
92 void monitoredItemMoved(const Akonadi::Item &, const Akonadi::Collection &, const Akonadi::Collection &);
113 void retrieveAncestors(const Akonadi::Collection &collection, bool insertBaseCollection = true);
115 void insertCollection(const Akonadi::Collection &collection, const Akonadi::Collection &parent);
116 void insertPendingCollection(const Akonadi::Collection &collection, const Akonadi::Collection &parent, QMutableListIterator<Collection> &it);
260 QList<Node *>::iterator skipCollections(QList<Node *>::iterator it, QList<Node *>::iterator end, int *pos);
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:54
@ FirstLevel
Only list direct sub-collections of the base collection.
Definition: collectionfetchjob.h:63
Provides statistics information of a Collection.
Definition: collectionstatistics.h:70
QList< Node * >::iterator removeItems(QList< Node * >::iterator it, QList< Node * >::iterator end, int *pos, const Collection &col)
Removes the items starting from it and up to a maximum of end in Collection col.
QList< Node * >::iterator skipCollections(QList< Node * >::iterator it, QList< Node * >::iterator end, int *pos)
Skips over Collections in m_childEntities up to a maximum of end.
QStringList childCollectionNames(const Collection &collection) const
Returns the list of names of the child collections of collection.
static QByteArray FetchCollectionId()
The id of the collection which starts an item fetch job.
Definition: entitytreemodel_p.h:195
void retrieveAncestors(const Akonadi::Collection &collection, bool insertBaseCollection=true)
Fetch parent collections and insert this collection and its parents into the node tree.
void dataChanged(const QModelIndex &top, const QModelIndex &bottom)
Emits the data changed signal for the entire row as in the subclass, instead of just for the first co...
void purgeItems(Collection::Id id)
Purges the items in the Collection id.
QModelIndexList indexesForItem(const Item &item) const
Returns the model indexes for the given item.
void startFirstListJob()
Called after the root collection was fetched by fillModel.
bool isMonitored(Collection::Id id)
int indexOf(const QList< Node * > &nodes, Entity::Id id) const
Returns the index of the node in list with the id id.
Definition: entitytreemodel_p.h:178
bool shouldPurge(Collection::Id id)
QModelIndex indexForCollection(const Collection &collection) const
Returns the model index for the given collection.
void fillModel()
Start function for filling the Model, finds and fetches the root of the node tree Next relevant funct...
bool isHidden(const Entity &entity, Node::Type type) const
bool shouldBePartOfModel(const Collection &collection) const
Returns true if the collection matches all filters and should be part of the model.
bool isBuffered(Collection::Id id)
A model for collections and items together.
Definition: entitytreemodel.h:319
ItemPopulationStrategy
Describes how the model should populated its items.
Definition: entitytreemodel.h:408
CollectionFetchStrategy
Describes what collections shall be fetched by and represent in the model.
Definition: entitytreemodel.h:527
Helper for checking MIME types of Collections and Items.
Definition: mimetypechecker.h:110
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jan 20 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jan 20 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.