akonadi
entitytreemodel.h
548 virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
555 virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
558 virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
596 virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith | Qt::MatchWrap)) const;
628 static QModelIndex modelIndexForCollection(const QAbstractItemModel *model, const Collection &collection);
683 virtual QVariant entityData(const Collection &collection, int column, int role = Qt::DisplayRole) const;
689 virtual QVariant entityHeaderData(int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup) const;
701 virtual bool entityMatch(const Collection &collection, const QVariant &value, Qt::MatchFlags flags) const;
742 Q_PRIVATE_SLOT(d_func(), void monitoredCollectionAdded(const Akonadi::Collection &, const Akonadi::Collection &))
745 Q_PRIVATE_SLOT(d_func(), void monitoredCollectionMoved(const Akonadi::Collection &, const Akonadi::Collection &,
748 Q_PRIVATE_SLOT(d_func(), void monitoredItemAdded(const Akonadi::Item &, const Akonadi::Collection &))
750 Q_PRIVATE_SLOT(d_func(), void monitoredItemChanged(const Akonadi::Item &, const QSet<QByteArray> &))
751 Q_PRIVATE_SLOT(d_func(), void monitoredItemMoved(const Akonadi::Item &, const Akonadi::Collection &,
754 Q_PRIVATE_SLOT(d_func(), void monitoredItemLinked(const Akonadi::Item &, const Akonadi::Collection &))
755 Q_PRIVATE_SLOT(d_func(), void monitoredItemUnlinked(const Akonadi::Item &, const Akonadi::Collection &))
Provides statistics information of a Collection.
Definition collectionstatistics.h:70
ItemPopulationStrategy
Describes how the model should populated its items.
Definition entitytreemodel.h:408
@ ImmediatePopulation
Retrieve items immediately when their parent is in the model. This is the default.
Definition entitytreemodel.h:410
@ LazyPopulation
Fetch items only when requested (using canFetchMore/fetchMore)
Definition entitytreemodel.h:411
virtual QVariant entityData(const Item &item, int column, int role=Qt::DisplayRole) const
Provided for convenience of subclasses.
Definition entitytreemodel.cpp:173
void collectionTreeFetched(const Akonadi::Collection::List &collections)
Signal emitted when the collection tree has been fetched for the first time.
FetchState
Describes the state of fetch jobs related to particular collections.
Definition entitytreemodel.h:374
@ FetchingState
There is a fetch of items in this collection in progress.
Definition entitytreemodel.h:376
@ IdleState
There is no fetch of items in this collection in progress.
Definition entitytreemodel.h:375
HeaderGroup
Describes what header information the model shall return.
Definition entitytreemodel.h:383
@ CollectionTreeHeaders
Header information for a collection-only tree.
Definition entitytreemodel.h:385
@ EndHeaderGroup
Last headergroup role. Don't use a role beyond this or headerData will break.
Definition entitytreemodel.h:388
@ EntityTreeHeaders
Header information for a tree with collections and items.
Definition entitytreemodel.h:384
virtual bool entityMatch(const Item &item, const QVariant &value, Qt::MatchFlags flags) const
Reimplement this in a subclass to return true if item matches value with flags in the AmazingCompleti...
Definition entitytreemodel.cpp:977
void collectionFetched(int collectionId)
Emitted once a collection has been fetched for the very first time.
CollectionFetchStrategy
Describes what collections shall be fetched by and represent in the model.
Definition entitytreemodel.h:527
@ InvisibleCollectionFetch
Fetches collections, but does not put them in the model. This can be used to create a list of items i...
Definition entitytreemodel.h:531
@ FetchFirstLevelChildCollections
Fetches first level collections in the root collection.
Definition entitytreemodel.h:529
@ FetchCollectionsRecursive
Fetches collections in the root collection recursively. This is the default.
Definition entitytreemodel.h:530
EntityTreeModel(ChangeRecorder *monitor, QObject *parent=0)
Creates a new entity tree model.
Definition entitytreemodel.cpp:53
void collectionPopulated(Akonadi::Collection::Id collectionId)
Signal emitted when a collection has been populated, i.e.
@ AvailablePartsRole
Parts available in the Akonadi server for the item.
Definition entitytreemodel.h:344
@ TerminalUserRole
Last role for user extensions. Don't use a role beyond this or headerData will break.
Definition entitytreemodel.h:356
@ CollectionSyncProgressRole
Returns the progress of synchronization in percent for a particular collection.
Definition entitytreemodel.h:352
@ EntityUrlRole
The akonadi:/ Url of the entity as a string. Item urls will contain the mimetype.
Definition entitytreemodel.h:349
@ UnreadCountRole
Returns the number of unread items in a collection.
Definition entitytreemodel.h:350
@ IsPopulatedRole
Returns whether a Collection has been populated, i.e. whether its items have been fetched.
Definition entitytreemodel.h:353
virtual QVariant entityHeaderData(int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup) const
Reimplement this to provide different header data.
Definition entitytreemodel.cpp:730
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition itemfetchscope.h:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.