|  | Home |

# QMailThread Class Reference

The QMailThread class represents a thread of mail messages in the mail store. More...

        #include <QMailThread>

This class is under development and is subject to change.

- List of all members, including inherited members

## Public Functions

| QMailThread ()
| QMailThread ( const QMailThreadId & id )
| QMailThread ( const QMailThread & other )
| ~QMailThread ()
QMailThreadId | id () const
uint | messageCount () const
QMailAccountId | parentAccountId () const
QString | serverUid () const
void | setId ( const QMailThreadId & id )
void | setMessageCount ( uint value )
void | setParentAccountId ( const QMailAccountId & id )
void | setServerUid ( const QString & serverUid )
void | setUnreadCount ( uint value )
uint | unreadCount () const
QMailThread & | operator= ( const QMailThread & other )

## Detailed Description

The QMailThread class represents a thread of mail messages in the mail store.

QMailThread represents a thread (also known as conversation) of mail messages.

See also QMailMessage and QMailStore::thread().

## Member Function Documentation

### QMailThread::QMailThread ()

Constructor that creates an empty and invalid `QMailThread`. An empty thread is one which has no id or messages account. An invalid thread does not exist in the database and has an invalid id.

### QMailThread::QMailThread ( const QMailThreadId & id )

Constructor that creates a QMailThread by loading the data from the message store as specified by the QMailThreadId id. If the thread does not exist in the message store, then this constructor will create an empty and invalid QMailThread.

### QMailThread::QMailThread ( const QMailThread & other )

Creates a copy of the `QMailThread` object other.

### QMailThread::~QMailThread ()

Destroys the `QMailThread` object.

### QMailThreadId QMailThread::id () const

Returns the `ID` of the `QMailThread` object. A `QMailThread` with an invalid ID is one which does not yet exist on the message store.

See also setId().

### uint QMailThread::messageCount () const

Gets the count of the thread.

See also setMessageCount().

### QMailAccountId QMailThread::parentAccountId () const

Gets the parent account for this thread

See also setParentAccountId().

### QString QMailThread::serverUid () const

Gets the serverUid of the thread.

See also setServerUid().

### void QMailThread::setId ( const QMailThreadId & id )

Sets the ID of this thread to id

See also id().

### void QMailThread::setMessageCount ( uint value )

Sets the count of the thread to value.

See also messageCount().

### void QMailThread::setParentAccountId ( const QMailAccountId & id )

Sets the parent account ID to id.

See also parentAccountId().

### void QMailThread::setServerUid ( const QString & serverUid )

Sets the serverUid of the thread to serverUid.

See also serverUid().

### void QMailThread::setUnreadCount ( uint value )

Sets the unread count of the thread to value.

See also unreadCount().

### uint QMailThread::unreadCount () const

Gets the unread count of the thread.

See also setUnreadCount().

### QMailThread & QMailThread::operator= ( const QMailThread & other )

Assigns the value of the `QMailThread` object other to this.