• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::CollectionStatisticsModel

Akonadi::CollectionStatisticsModel Class Reference

A model that provides statistics for collections. More...

#include <collectionstatisticsmodel.h>

Inheritance diagram for Akonadi::CollectionStatisticsModel:

Inheritance graph
[legend]

List of all members.


Public Types


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 or the number of read/unread items.

Example:

 QTreeView *view = new QTreeView( this );

 Akonadi::CollectionStatisticsModel *model = new Akonadi::CollectionStatisticsModel( view );
 view->setModel( model );

Author:
Volker Krause <vkrause@kde.org>

Definition at line 50 of file collectionstatisticsmodel.h.


Member Enumeration Documentation

enum Akonadi::CollectionStatisticsModel::Roles

Describes the roles for the statistics collection model.

Enumerator:
UnreadRole  The number of unread items in this collection.
TotalRole  The number of items in this collection.
StatisticsRole  A statistics object of this collection.
RecursiveUnreadRole  The number of unread items in this collection and its children.
RecursiveTotalRole  The number of items in this collection and its children.
RecursiveStatisticsRole  A statistics object of this collection and its children.
UserRole  Role for user extensions.

Reimplemented from Akonadi::CollectionModel.

Definition at line 59 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 69 of file collectionstatisticsmodel.cpp.


The documentation for this class was generated from the following files:
  • collectionstatisticsmodel.h
  • collectionstatisticsmodel.cpp

akonadi

Skip menu "akonadi"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal