# class MessageModel

###

Module | akonadi
Namespace | Akonadi
Class | MessageModel
Inherits | Akonadi::ItemModel

A flat self-updating message model.

### enums

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

enum details

### methods

- MessageModel (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0

  Creates a new message model.

  parent - The parent object.

- columnCount (parent)

  returns int

  Argument | Type | Default
  --- | --- | ---
  parent | QModelIndex | QModelIndex()

  Reimplemented from QAbstractItemModel.

- data (index, role)

  returns QVariant

  Argument | Type | Default
  --- | --- | ---
  index | QModelIndex |
  role | int | Qt.DisplayRole

  Reimplemented from QAbstractItemModel.

- headerData (section, orientation, role)

  returns QVariant

  Argument | Type | Default
  --- | --- | ---
  section | int |
  orientation | Qt.Orientation |
  role | int | Qt.DisplayRole

  Reimplemented from QAbstractItemModel.

### enums - detail

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

  Column types.

  | Subject | - | - |
  | Sender | - | - |
  | Receiver | - | - |
  | Date | - | - |
  | Size | - | - |