• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

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

#include <messagemodel.h>

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

List of all members.

Public Types

enum  Column {
  Subject, Sender, Receiver, Date,
  Size
}

Public Member Functions

 MessageModel (QObject *parent=0)
virtual ~MessageModel ()
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
virtual QStringList mimeTypes () const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const

Detailed Description

A flat self-updating message model.

Deprecated:
Subclass Akonadi::EntityTreeModel instead. An example can be seen in AkonadiConsole, have a look at AkonadiBrowserModel there.

Member Enumeration Documentation

enum Akonadi::MessageModel::Column

Column types.

Enumerator:
Subject 

Subject column.

Sender 

Sender column.

Receiver 

Receiver column.

Date 

Date column.

Size 

Size column.

Reimplemented from Akonadi::ItemModel.

Definition at line 46 of file messagemodel.h.


Constructor & Destructor Documentation

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

Creates a new message model.

Parameters:
parentThe parent object.

Definition at line 44 of file messagemodel.cpp.

MessageModel::~MessageModel ( ) [virtual]

Deletes the message model.

Definition at line 51 of file messagemodel.cpp.


Member Function Documentation

virtual int Akonadi::MessageModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const [virtual]

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

virtual QVariant Akonadi::MessageModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [virtual]

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

virtual QVariant Akonadi::MessageModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const [virtual]

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

virtual QStringList Akonadi::MessageModel::mimeTypes ( ) const [virtual]

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

virtual int Akonadi::MessageModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const [virtual]

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.


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

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • 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
Generated for KDE-PIM Libraries by doxygen 1.7.5
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