Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QMailMessageSet Class Reference
[QtMessagingModule]

The QMailMessageSet class represents a subset of the messages in the mail store. More...

    #include <QMailMessageSet>

This class is under development and is subject to change.

Inherits QObject and QMailMessageSetContainer.

Inherited by QMailAccountMessageSet, QMailFilterMessageSet, and QMailFolderMessageSet.

Public Functions

Protected Functions

Additional Inherited Members


Detailed Description

The QMailMessageSet class represents a subset of the messages in the mail store.

QMailMessageSet provides a representation for a named subset of messages, specified by a QMailMessageKey selection criterion.

QMailMessageSets are designed to be arranged in hierarchies, and each message set is a container for child message sets, implementing the QMailMessageSetContainer interface. Message sets are owned by QMailMessageSetModel instances, and the index of a message set within the model can be retrieved using modelIndex().

The messageKey() function of each QMailMessageSet object can be used to provide the message selection filter for a QMailMessageListModel. The descendantsMessageKey() function can be used to provide a message selection filter matching all messages beneath this message set in the hierarchy.

QMailMessageSet objects should not directly respond to events reported by the QMailStore; instead, they should react to notifications of mail store events emitted by the QMailMessageSetModel to which they are attached. Because the events they receive from the model may be filtered, QMailMessageSet instances must implement the resyncState() function, resynchronizing their state with the current state of the mail store.

See also QMailMessageSetModel.


Member Function Documentation

QMailMessageSet::QMailMessageSet ( QMailMessageSetContainer * container )

Constructs a new QMailMessageSet within the container object container.

QVariant QMailMessageSet::data ( int role, int column = 0 )

Returns the data element associated with the specified role and column, from the model that owns this message set.

QMailMessageKey QMailMessageSet::descendantsMessageKey () const   [virtual]

Returns the QMailMessageKey that defines the messages found beneath this message set in the hierarchy, not including the messages of this message set itself.

QString QMailMessageSet::displayName () const   [pure virtual]

Returns the name of this message set, suitable for display purposes.

void QMailMessageSet::init ()   [virtual protected]

Initialises the message set after it has been appended to the parent container object.

QMailMessageKey QMailMessageSet::messageKey () const   [pure virtual]

Returns the QMailMessageKey that defines the messages represented by this message set.

QModelIndex QMailMessageSet::modelIndex ( int column = 0 )

Returns the index of this message set within the model that owns it, having the specified column.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3