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,
354 UserRole = Qt::UserRole + 500,
355 TerminalUserRole = 2000,
375 FetchingState
386 UserHeaders = 10,
387 EndHeaderGroup = 32
388 // Note that we're splitting up available roles for the header data hack and int(EndRole / TerminalUserRole) == 32
410 LazyPopulation
530 InvisibleCollectionFetch
547 virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
554 virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
557 virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
595 virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith | Qt::MatchWrap)) const;
627 static QModelIndex modelIndexForCollection(const QAbstractItemModel *model, const Collection &collection);
682 virtual QVariant entityData(const Collection &collection, int column, int role = Qt::DisplayRole) const;
688 virtual QVariant entityHeaderData(int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup) const;
700 virtual bool entityMatch(const Collection &collection, const QVariant &value, Qt::MatchFlags flags) const;
741 Q_PRIVATE_SLOT(d_func(), void monitoredCollectionAdded(const Akonadi::Collection &, const Akonadi::Collection &))
744 Q_PRIVATE_SLOT(d_func(), void monitoredCollectionMoved(const Akonadi::Collection &, const Akonadi::Collection &,
747 Q_PRIVATE_SLOT(d_func(), void monitoredItemAdded(const Akonadi::Item &, const Akonadi::Collection &))
749 Q_PRIVATE_SLOT(d_func(), void monitoredItemChanged(const Akonadi::Item &, const QSet<QByteArray> &))
750 Q_PRIVATE_SLOT(d_func(), void monitoredItemMoved(const Akonadi::Item &, const Akonadi::Collection &,
753 Q_PRIVATE_SLOT(d_func(), void monitoredItemLinked(const Akonadi::Item &, const Akonadi::Collection &))
754 Q_PRIVATE_SLOT(d_func(), void monitoredItemUnlinked(const Akonadi::Item &, const Akonadi::Collection &))
Parts available in the model for the item.
Definition: entitytreemodel.h:343
Returns the number of unread items in a collection.
Definition: entitytreemodel.h:350
Header information for a tree with collections and items.
Definition: entitytreemodel.h:383
Provides statistics information of a Collection.
Definition: collectionstatistics.h:69
Returns the FetchState of a particular item.
Definition: entitytreemodel.h:351
ItemPopulationStrategy
Describes how the model should populated its items.
Definition: entitytreemodel.h:407
Do not include items in the model.
Definition: entitytreemodel.h:408
Fetches collections in the root collection recursively. This is the default.
Definition: entitytreemodel.h:529
Fetches first level collections in the root collection.
Definition: entitytreemodel.h:528
There is no fetch of items in this collection in progress.
Definition: entitytreemodel.h:374
Returns the progress of synchronization in percent for a particular collection.
Definition: entitytreemodel.h:352
Header information for a collection-only tree.
Definition: entitytreemodel.h:384
HeaderGroup
Describes what header information the model shall return.
Definition: entitytreemodel.h:382
Returns whether a Collection has been populated, i.e. whether its items have been fetched...
Definition: entitytreemodel.h:353
Role used to implement amazing completion.
Definition: entitytreemodel.h:340
The parent collection of the entity.
Definition: entitytreemodel.h:341
Retrieve items immediately when their parent is in the model. This is the default.
Definition: entitytreemodel.h:409
Fetches nothing. This creates an empty model.
Definition: entitytreemodel.h:527
Header information for a list of items.
Definition: entitytreemodel.h:385
Parts available in the Akonadi server for the item.
Definition: entitytreemodel.h:344
A model for collections and items together.
Definition: entitytreemodel.h:318
FetchState
Describes the state of fetch jobs related to particular collections.
Definition: entitytreemodel.h:373
Ordered list of child items if available.
Definition: entitytreemodel.h:339
The akonadi:/ Url of the entity as a string. Item urls will contain the mimetype. ...
Definition: entitytreemodel.h:349
CollectionFetchStrategy
Describes what collections shall be fetched by and represent in the model.
Definition: entitytreemodel.h:526
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Sun Apr 26 2015 01:25:52 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2015 The KDE developers.
Generated on Sun Apr 26 2015 01:25:52 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.