|  | Home |

# QMailMessageFwd Class Reference

The QMailMessageFwd class declares enumerations used by QMailMessage More...

        #include <QMailMessageFwd>

This class is under development and is subject to change.

Inherited by QMailMessage.

- List of all members, including inherited members

## Public Types

enum | AttachmentsAction { LinkToAttachments, CopyAttachments, CopyAndDeleteAttachments }
enum | ChunkType { Text, Reference }
enum | EncodingFormat { HeaderOnlyFormat, StorageFormat, TransmissionFormat, IdentityFormat }
typedef | MessageChunk

## Detailed Description

The QMailMessageFwd class declares enumerations used by QMailMessage

QMailMessageFwd allows QMailMessage::AttachmentsAction and QMailMessage::EncodingFormat to be used without including all of `qmailmessage.h`.

## Member Type Documentation

### enum QMailMessageFwd::AttachmentsAction

This enum type is used to describe the action that should be performed on each message attachment.

Constant | Value | Description
--- | --- | ---
`QMailMessageFwd::LinkToAttachments` | `0` | Add a part to the message containing a link to the supplied attachment. If the document is removed, the message will no longer have access to the data.
`QMailMessageFwd::CopyAttachments` | `1` | Add a part to the message containing a copy of the data in the supplied attachment. If the document is removed, the message will still contain the data.
`QMailMessageFwd::CopyAndDeleteAttachments` | `2` | Add a part to the message containing a copy of the data in the supplied attachment, then delete the document from which the data was copied.

### enum QMailMessageFwd::ChunkType

This enum type is used to denote the content of a single chunk in a partitioned output sequence.

Constant | Value | Description
--- | --- | ---
`QMailMessageFwd::Text` | `0` | The chunk contains verbatim output text.
`QMailMessageFwd::Reference` | `1` | The chunk contains a reference to an external datum.

### enum QMailMessageFwd::EncodingFormat

This enum type is used to describe the format in which a message should be serialized.

Constant | Value | Description
--- | --- | ---
`QMailMessageFwd::HeaderOnlyFormat` | `1` | Only the header portion of the message is serialized, to RFC 2822 form.
`QMailMessageFwd::StorageFormat` | `2` | The message is serialized to RFC 2822 form, without attachments.
`QMailMessageFwd::TransmissionFormat` | `3` | The entire message is serialized to RFC 2822 form, with additional header fields added if necessary, and 'bcc' header field omitted.
`QMailMessageFwd::IdentityFormat` | `4` | The entire message is serialized to RFC 2822 form, with only Content-Type and Content-Transfer-Encoding headers added where required.

### typedef QMailMessageFwd::MessageChunk

This type defines a single chunk in a sequence of partitioned output data.