|  | Home |

# QMailMessageThreadedModel Class Reference

The QMailMessageThreadedModel class provides access to a tree of stored messages. More...

        #include <QMailMessageThreadedModel>

This class is under development and is subject to change.

Inherits QMailMessageModelBase.

- List of all members, including inherited members

## Public Functions

| QMailMessageThreadedModel ( QObject * parent = 0 )
virtual | ~QMailMessageThreadedModel ()

## Reimplemented Public Functions

virtual QModelIndex | generateIndex ( int row, int column, void * ptr )
virtual QModelIndex | index ( int row, int column = 0, const QModelIndex & parentIndex = QModelIndex() ) const
virtual QModelIndex | parent ( const QModelIndex & idx ) const

- 13 public functions inherited from QMailMessageModelBase
- 34 public functions inherited from QAbstractItemModel
- 29 public functions inherited from QObject

## Reimplemented Protected Functions

virtual QMailMessageModelImplementation * | impl ()
virtual const QMailMessageModelImplementation * | impl () const

- 14 protected functions inherited from QAbstractItemModel
- 7 protected functions inherited from QObject

### Additional Inherited Members

- 1 property inherited from QObject
- 2 public slots inherited from QAbstractItemModel
- 1 public slot inherited from QObject
- 1 signal inherited from QMailMessageModelBase
- 14 signals inherited from QAbstractItemModel
- 1 signal inherited from QObject
- 1 public type inherited from QObject
- 4 static public members inherited from QObject
- 14 protected functions inherited from QAbstractItemModel
- 7 protected functions inherited from QObject
- 2 protected variables inherited from QObject

## Detailed Description

The QMailMessageThreadedModel class provides access to a tree of stored messages.

The QMailMessageThreadedModel presents a tree of all the messages currently stored in the message store. By using the setKey() and sortKey() functions it is possible to have the model represent specific user filtered subsets of messages sorted in a particular order.

The QMailMessageThreadedModel represents the hierarchical links between messages implied by conversation threads. The model presents messages as children of predecessor messages, where the parent is the nearest ancestor of the message that is present in the filtered set of messages.

## Member Function Documentation

### QMailMessageThreadedModel::QMailMessageThreadedModel ( QObject * parent = 0 )

Constructs a QMailMessageThreadedModel with a parent parent.

By default, the model will not match any messages, display messages in the order they were submitted, and mail store updates are not ignored.

See also setKey(), setSortKey(), and setIgnoreMailStoreUpdates().

### QMailMessageThreadedModel::~QMailMessageThreadedModel () `[virtual]`

Deletes the QMailMessageThreadedModel object.

### QModelIndex QMailMessageThreadedModel::generateIndex ( int row, int column, void * ptr ) `[virtual]`

### QMailMessageModelImplementation * QMailMessageThreadedModel::impl () `[virtual protected]`

### const QMailMessageModelImplementation * QMailMessageThreadedModel::impl () const `[virtual protected]`

### QModelIndex QMailMessageThreadedModel::index ( int row, int column = 0, const QModelIndex & parentIndex = QModelIndex() ) const `[virtual]`

Reimplemented from QAbstractItemModel::index().

### QModelIndex QMailMessageThreadedModel::parent ( const QModelIndex & idx ) const `[virtual]`

Reimplemented from QAbstractItemModel::parent().