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);
Provides statistics information of a Collection.
Definition: collectionstatistics.h:70
A model for collections and items together.
Definition: entitytreemodel.h:319
bool isMonitored(Collection::Id id)
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.
bool isBuffered(Collection::Id id)
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.
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.
QModelIndex indexForCollection(const Collection &collection) const
Returns the model index for the given collection.
static QByteArray FetchCollectionId()
The id of the collection which starts an item fetch job.
Definition: entitytreemodel_p.h:195
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:54
bool isHidden(const Entity &entity, Node::Type type) const
@ FirstLevel
Only list direct sub-collections of the base collection.
Definition: collectionfetchjob.h:63
ItemPopulationStrategy
Describes how the model should populated its items.
Definition: entitytreemodel.h:408
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
Helper for checking MIME types of Collections and Items.
Definition: mimetypechecker.h:110
bool shouldBePartOfModel(const Collection &collection) const
Returns true if the collection matches all filters and should be part of the model.
bool shouldPurge(Collection::Id id)
void retrieveAncestors(const Akonadi::Collection &collection, bool insertBaseCollection=true)
Fetch parent collections and insert this collection and its parents into the node tree.
QStringList childCollectionNames(const Collection &collection) const
Returns the list of names of the child collections of collection.
CollectionFetchStrategy
Describes what collections shall be fetched by and represent in the model.
Definition: entitytreemodel.h:527
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 fillModel()
Start function for filling the Model, finds and fetches the root of the node tree Next relevant funct...
void startFirstListJob()
Called after the root collection was fetched by fillModel.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.