akonadi
Akonadi::CollectionStatisticsModel Class Reference
A model that provides statistics for collections. More...
#include <collectionstatisticsmodel.h>
Inheritance diagram for Akonadi::CollectionStatisticsModel:

Public Types | |
enum | Roles { UnreadRole = CollectionModel::UserRole + 1, TotalRole, StatisticsRole, RecursiveUnreadRole, RecursiveTotalRole, RecursiveStatisticsRole, SizeRole, RecursiveSizeRole, UserRole = CollectionModel::UserRole + 42 } |
Public Member Functions | |
CollectionStatisticsModel (QObject *parent=0) | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
Detailed Description
A model that provides statistics for collections.
This model extends the CollectionModel by providing additional information about the collections, e.g. the number of items in a collection, the number of read/unread items, or the total size of the collection.
Example:
QTreeView *view = new QTreeView( this ); Akonadi::CollectionStatisticsModel *model = new Akonadi::CollectionStatisticsModel( view ); view->setModel( model );
Definition at line 51 of file collectionstatisticsmodel.h.
Member Enumeration Documentation
Describes the roles for the statistics collection model.
- Enumerator:
Reimplemented from Akonadi::CollectionModel.
Definition at line 60 of file collectionstatisticsmodel.h.
Constructor & Destructor Documentation
CollectionStatisticsModel::CollectionStatisticsModel | ( | QObject * | parent = 0 |
) | [explicit] |
Creates a new collection statistics model.
- Parameters:
-
parent The parent object.
Definition at line 72 of file collectionstatisticsmodel.cpp.
The documentation for this class was generated from the following files: