TImEmailTransformingInfo Class Reference

class TImEmailTransformingInfo

Encapsulates character conversion and encoding settings for sending SMTP email.

The default outcomes for header, body, HTML, and attachment parts respectively for each of the listed categories are given below:

Plain Charset: ISO-8859-1,ISO-8859-1,N/A,N/A

Plain Encoding:None,None,N/A,UU

MIME Charset:UTF8,UTF8,UTF8*,N/A

MIME Encoding:B,QP,Base64,Base64

: the UTF8 value set in the header field, but no conversion is done. The HTML converter converts to UTF8.

Member Functions Documentation

AttachmentEncoding()

IMPORT_C TImEncodingTypeAttachmentEncoding()const

Gets the attachment encoding.

BodyTextCharset()

IMPORT_C TUintBodyTextCharset()const

Gets the character set for the body text.

BodyTextEncoding()

IMPORT_C TImEncodingTypeBodyTextEncoding()const

Gets the body text encoding.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)const

Parameters

RWriteStream & aWriteStream

HTMLCharset()

IMPORT_C TUintHTMLCharset()const

Gets the HTML character set.

HTMLEncoding()

IMPORT_C TImEncodingTypeHTMLEncoding()const

Gets the HTML encoding.

HeaderCharset()

IMPORT_C TUintHeaderCharset()const

Gets the character set for the header.

HeaderEncoding()

IMPORT_C TImEncodingTypeHeaderEncoding()const

Gets the header encoding.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aReadStream)

Parameters

RReadStream & aReadStream

RestoreL(CMsvStore &)

IMPORT_C voidRestoreL(CMsvStore &aStore)

Restores the object to the specified message store.

The function can leave with the standard stream leave codes.

Parameters

CMsvStore & aStoreStore to which to write

SendMethod()

IMPORT_C TImSendMethodSendMethod()const

Gets the current send method.

SetAttachmentEncoding(TImEncodingType)

IMPORT_C voidSetAttachmentEncoding(TImEncodingTypeaType)

Sets the encoding for email attachments.

This can be one of four possible values : EEncodingTypeNone, EEncodingTypeQP, EEncodingTypeBASE64, or EEncodingTypeUU.

Parameters

TImEncodingType aTypeThe email attachment encoding.

SetBodyTextCharset(TUint)

IMPORT_C voidSetBodyTextCharset(TUintaCharset)

Sets the character set for body text.

Parameters

TUint aCharsetThe character set.

SetBodyTextEncoding(TImEncodingType)

IMPORT_C voidSetBodyTextEncoding(TImEncodingTypeaType)

Sets the body text encoding.

Parameters

TImEncodingType aTypeThe body text encoding. This can be one of four possible values: EEncodingTypeNone, EEncodingTypeQP, EEncodingTypeBASE64, or EEncodingTypeUU.

SetHTMLCharset(TUint)

IMPORT_C voidSetHTMLCharset(TUintaCharset)

Sets the HTML character set.

Parameters

TUint aCharsetThe character set.

SetHTMLEncoding(TImEncodingType)

IMPORT_C voidSetHTMLEncoding(TImEncodingTypeaType)

Sets the encoding for HTML email.

Parameters

TImEncodingType aTypeThe HTML email encoding. This can be one of four possible values: EEncodingTypeNone, EEncodingTypeQP, EEncodingTypeBASE64, or EEncodingTypeUU.

SetHeaderAndBodyCharset(TUint)

IMPORT_C voidSetHeaderAndBodyCharset(TUintaCharset)

Sets the character set used for both the header and body text.

Parameters

TUint aCharsetThe character set.

SetHeaderCharset(TUint)

IMPORT_C voidSetHeaderCharset(TUintaCharset)

Sets the character set used for the header.

Parameters

TUint aCharsetThe character set.

SetHeaderEncoding(TImEncodingType)

voidSetHeaderEncoding(TImEncodingTypeaType)[private]

Parameters

TImEncodingType aType

SetHeaderEncodingB()

IMPORT_C voidSetHeaderEncodingB()

Sets the header encoding to type B.

SetHeaderEncodingQ()

IMPORT_C voidSetHeaderEncodingQ()

Sets the header encoding to type Q.

SetSendMethod(const TImSendMethod)

IMPORT_C voidSetSendMethod(const TImSendMethodaMethod)

Sets the method by which email is sent.

This is either ESendAsSimpleEmail or ESendAsMimeEmail.

Parameters

const TImSendMethod aMethodThe method by which email is sent.

SetToDefault(const TImSendMethod)

IMPORT_C voidSetToDefault(const TImSendMethodaMethod)

Sets the member data to their default values, for the send method specified.

Parameters

const TImSendMethod aMethodThe send method.

StoreL(CMsvStore &)

IMPORT_C voidStoreL(CMsvStore &aStore)const

Writes the object to the specified message store.

The function can leave with the standard stream leave codes.

Parameters

CMsvStore & aStoreStore to which to write

operator=(const TImEmailTransformingInfo &)

IMPORT_C TImEmailTransformingInfo &operator=(const TImEmailTransformingInfo &aInfo)

Overloaded assignment operator.

Parameters

const TImEmailTransformingInfo & aInfoObject from which to copy settings

operator==(const TImEmailTransformingInfo &)

IMPORT_C TBooloperator==(const TImEmailTransformingInfo &aInfo)

Overloaded equality operator.

Parameters

const TImEmailTransformingInfo & aInfoObject with which to compare this object

Member Data Documentation

TImEncodingType iAttachmentEncoding

TImEncodingType iAttachmentEncoding[private]

TUint iBodyCharset

TUint iBodyCharset[private]

TImEncodingType iBodyEncoding

TImEncodingType iBodyEncoding[private]

TUint iHTMLCharset

TUint iHTMLCharset[private]

TImEncodingType iHTMLEncoding

TImEncodingType iHTMLEncoding[private]

TUint iHeaderCharset

TUint iHeaderCharset[private]

TImEncodingType iHeaderEncoding

TImEncodingType iHeaderEncoding[private]

TImSendMethod iSendMethod

TImSendMethod iSendMethod[private]

TUint iTextAttachmentCharset

TUint iTextAttachmentCharset[private]