akonadi
#include <messagemodel.h>

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.
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:
-
parent The 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:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:51 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.