akonadi
Akonadi::MessageModel Class Reference
#include <messagemodel.h>
Inheritance diagram for Akonadi::MessageModel:

Detailed Description
A flat self-updating message model.Definition at line 32 of file messagemodel.h.
Public Types | |
enum | Column { Subject, Sender, Receiver, Date, Size } |
Public Member Functions | |
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 |
MessageModel (QObject *parent=0) | |
virtual | ~MessageModel () |
Member Enumeration Documentation
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 40 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 45 of file messagemodel.cpp.
MessageModel::~MessageModel | ( | ) | [virtual] |
Member Function Documentation
int MessageModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Reimplemented from QAbstractItemModel.
Reimplemented from Akonadi::ItemModel.
Definition at line 57 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 65 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 112 of file messagemodel.cpp.
The documentation for this class was generated from the following files: