• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • CollectionStatisticsModel
Public Types | Public Member Functions
Akonadi::CollectionStatisticsModel Class Reference

#include <collectionstatisticsmodel.h>

Inheritance diagram for Akonadi::CollectionStatisticsModel:
Inheritance graph
[legend]

List of all members.

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 );
Author:
Volker Krause <vkrause@kde.org>
Deprecated:
Use Akonadi::EntityTreeModel with an Akonadi::StatisticsProxyModel on top

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.

SizeRole 

The total size of the items in this collection.

RecursiveSizeRole 

The total size of the items in this collection and its children.

UserRole 

Role for user extensions.

Reimplemented from Akonadi::CollectionModel.

Definition at line 61 of file collectionstatisticsmodel.h.


Constructor & Destructor Documentation

CollectionStatisticsModel::CollectionStatisticsModel ( QObject *  parent = 0) [explicit]

Creates a new collection statistics model.

Parameters:
parentThe parent object.

Definition at line 72 of file collectionstatisticsmodel.cpp.


The documentation for this class was generated from the following files:
  • collectionstatisticsmodel.h
  • collectionstatisticsmodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:53:10 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal