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

akonadi

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

#include <messagemodel.h>

Inheritance diagram for Akonadi::MessageModel:
Akonadi::ItemModel

Public Types

enum  Column {
  Subject, Sender, Receiver, Date,
  Size
}
 
- Public Types inherited from Akonadi::ItemModel
enum  Column { Id = 0, RemoteId, MimeType }
 
enum  Roles { IdRole = Qt::UserRole + 1, ItemRole, MimeTypeRole, UserRole = Qt::UserRole + 42 }
 

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
 
- Public Member Functions inherited from Akonadi::ItemModel
 ItemModel (QObject *parent=0)
 
virtual ~ItemModel ()
 
Collection collection () const
 
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 
ItemFetchScope & fetchScope ()
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
QModelIndex indexForItem (const Akonadi::Item &item, const int column) const
 
Item itemForIndex (const QModelIndex &index) const
 
virtual QMimeData * mimeData (const QModelIndexList &indexes) const
 
void setFetchScope (const ItemFetchScope &fetchScope)
 
virtual Qt::DropActions supportedDropActions () const
 

Additional Inherited Members

- Public Slots inherited from Akonadi::ItemModel
void setCollection (const Akonadi::Collection &collection)
 
- Signals inherited from Akonadi::ItemModel
void collectionChanged (const Akonadi::Collection &collection)
 
- Protected Member Functions inherited from Akonadi::ItemModel
Session * session () 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 44 of file messagemodel.cpp.

MessageModel::~MessageModel ( )
virtual

Deletes the message model.

Definition at line 51 of file messagemodel.cpp.

Member Function Documentation

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

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

Definition at line 73 of file messagemodel.cpp.

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

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

Definition at line 86 of file messagemodel.cpp.

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

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

Definition at line 142 of file messagemodel.cpp.

QStringList MessageModel::mimeTypes ( ) const
virtual

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

Definition at line 56 of file messagemodel.cpp.

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

Reimplemented from QAbstractItemModel.

Reimplemented from Akonadi::ItemModel.

Definition at line 63 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-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:51 by doxygen 1.8.3.1 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.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • 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