akonadi
entitytreemodel.h
327 //sebsauer, 2009-05-07; to be able here to keep the akonadi_next EntityTreeModel compatible with
331 ItemIdRole = Qt::UserRole + 1,
332 ItemRole = Qt::UserRole + 2,
333 MimeTypeRole = Qt::UserRole + 3,
335 CollectionIdRole = Qt::UserRole + 10,
336 CollectionRole = Qt::UserRole + 11,
355 UserRole = Qt::UserRole + 500,
356 TerminalUserRole = 2000,
378 };
387 UserHeaders = 10,
389 // Note that we're splitting up available roles for the header data hack and int(EndRole / TerminalUserRole) == 32
390 };
412 };
532 };
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
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
@ 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
@ EntityTreeHeaders
Header information for a tree with collections and items.
Definition entitytreemodel.h:384
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
@ 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
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
@ 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.