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

akonadi/kmime

  • Akonadi
  • MessageModel
Public Types | Public Member Functions | List of all members
Akonadi::MessageModel Class Reference

#include <messagemodel.h>

Inherits ItemModel.

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.

Definition at line 38 of file messagemodel.h.

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.

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 45 of file messagemodel.cpp.

MessageModel::~MessageModel ( )
virtual

Deletes the message model.

Definition at line 52 of file messagemodel.cpp.

Member Function Documentation

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

Reimplemented from QAbstractItemModel.

Definition at line 74 of file messagemodel.cpp.

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

Reimplemented from QAbstractItemModel.

Definition at line 87 of file messagemodel.cpp.

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

Reimplemented from QAbstractItemModel.

Definition at line 143 of file messagemodel.cpp.

QStringList MessageModel::mimeTypes ( ) const
virtual

Reimplemented from QAbstractItemModel.

Definition at line 57 of file messagemodel.cpp.

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

Reimplemented from QAbstractItemModel.

Definition at line 64 of file messagemodel.cpp.


The documentation for this class was generated from the following files:
  • messagemodel.h
  • messagemodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi/kmime

Skip menu "akonadi/kmime"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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