CImMimeHeader Class Reference

#include <mw/miuthdr.h>

Link against: imcm.lib

class CImMimeHeader : public CBase

Inherits from

Public Member Functions
~CImMimeHeader()
IMPORT_C const TPtrC8ContentBase()
IMPORT_C const TPtrC8ContentDescription()
IMPORT_C const TPtrC8ContentDisposition()
const CDesC8Array &ContentDispositionParams()
CDesC8Array &ContentDispositionParams()
IMPORT_C const TPtrC8ContentID()
IMPORT_C const TPtrC16ContentLocation()
IMPORT_C const TPtrC8ContentSubType()
IMPORT_C TImEncodingTypeContentTransferEncoding()
IMPORT_C TImEncodingTypeContentTransferEncoding(TDes8 &)
IMPORT_C const TPtrC8ContentType()
const CDesC8Array &ContentTypeParams()
CDesC8Array &ContentTypeParams()
IMPORT_C voidExternalizeL(RMsvWriteStream &)
IMPORT_C const TPtrC8GetContentTypeValue(const TDesC8 &)
IMPORT_C voidInternalizeL(RMsvReadStream &)
IMPORT_C TUintMimeCharset()
IMPORT_C CImMimeHeader *NewL()
IMPORT_C CImMimeHeader *NewLC()
IMPORT_C const TPtrC8RelativePath()
IMPORT_C voidReset()
IMPORT_C voidRestoreL(CMsvStore &)
IMPORT_C voidSetContentBaseL(const TDesC8 &)
IMPORT_C voidSetContentDescriptionL(const TDesC8 &)
IMPORT_C voidSetContentDispositionL(const TDesC8 &)
IMPORT_C voidSetContentIDL(const TDesC8 &)
IMPORT_C voidSetContentLocationL(const TDesC16 &)
IMPORT_C voidSetContentSubTypeL(const TDesC8 &)
IMPORT_C voidSetContentTransferEncodingL(const TDesC8 &)
IMPORT_C voidSetContentTypeL(const TDesC8 &)
IMPORT_C voidSetMimeCharset(const TUint)
IMPORT_C voidSetRelativePathL(const TDesC8 &)
voidSetVersion(TUint16)
IMPORT_C TIntSize()
IMPORT_C voidStoreL(CMsvStore &)
IMPORT_C voidStoreWithoutCommitL(CMsvStore &)
const TUint16Version()
const CDesC8Array &XTypeParams()
CDesC8Array &XTypeParams()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()

Detailed Description

Stores a MIME email header.

Constructor & Destructor Documentation

~CImMimeHeader ( )

IMPORT_C~CImMimeHeader()

Destructor.

Member Function Documentation

ContentBase ( )

IMPORT_C const TPtrC8ContentBase()const

Gets the Content-Base field value.

Return Value
Field value

ContentDescription ( )

IMPORT_C const TPtrC8ContentDescription()const

Gets the Content-Description field value.

The value is MIME defined and should always be 8-bit.

Return Value
Field value

ContentDisposition ( )

IMPORT_C const TPtrC8ContentDisposition()const

Gets the Content-Disposition field value (either inline or attachment).

The value is MIME defined and should always be 8-bit.

Return Value
Field value

ContentDispositionParams ( )

const CDesC8Array &ContentDispositionParams()const [inline]

ContentDispositionParams ( )

CDesC8Array &ContentDispositionParams()[inline]

ContentID ( )

IMPORT_C const TPtrC8ContentID()const

Gets the Content-ID field value.

Return Value
Field value

ContentLocation ( )

IMPORT_C const TPtrC16ContentLocation()const

Gets the Content-Location field value.

Return Value
Field value

ContentSubType ( )

IMPORT_C const TPtrC8ContentSubType()const

Gets the Content-Type subtype field value (e.g. "plain" in Content-Type:text/plain).

The value is MIME defined and should always be 8-bit.

Return Value
Field value

ContentTransferEncoding ( )

IMPORT_C TImEncodingTypeContentTransferEncoding()const

Gets the Content-Transfer-Encoding field value.

Return Value
Field value

ContentTransferEncoding ( TDes8 & )

IMPORT_C TImEncodingTypeContentTransferEncoding(TDes8 &rType)const

Gets the Content-Transfer-Encoding field value as a string.

Parameters
rTypeOn return, the field value as a string
Return Value
Field value

ContentType ( )

IMPORT_C const TPtrC8ContentType()const

Gets the Content-Type field value (e.g. "text" in Content-Type:text/plain).

Return Value
Field value

ContentTypeParams ( )

const CDesC8Array &ContentTypeParams()const [inline]

ContentTypeParams ( )

CDesC8Array &ContentTypeParams()[inline]

ExternalizeL ( RMsvWriteStream & )

IMPORT_C voidExternalizeL(RMsvWriteStream &aWriteStream)const

Externalises the settings to a specified stream.

Parameters
aWriteStreamStream to write to

GetContentTypeValue ( const TDesC8 & )

IMPORT_C const TPtrC8GetContentTypeValue(const TDesC8 &aContentTypeParameter)const

Gets the value for a particular Content-Type parameter.

For example, for "content-type: text/plain; name=umlaut.txt", GetContentType(_L8("name")) returns "umlaut.txt".

Parameters
aContentTypeParameterParameter type
Return Value
Parameter value

InternalizeL ( RMsvReadStream & )

IMPORT_C voidInternalizeL(RMsvReadStream &aReadStream)

Internalises the settings from a specified stream.

Parameters
aReadStreamStream to read from

MimeCharset ( )

IMPORT_C TUintMimeCharset()const

Gets the character set used in decoding the email MIME part.

UID values for different MIME charsets are in charconv.h

Return Value
Character set

NewL ( )

IMPORT_C CImMimeHeader *NewL()[static]

Allocates and creates a new CImMimeHeader object.

Return Value
New CImMimeHeader object

NewLC ( )

IMPORT_C CImMimeHeader *NewLC()[static]

Allocates and creates a new CImMimeHeader object, leaving the object on the cleanup stack.

Return Value
New CImMimeHeader object

RelativePath ( )

IMPORT_C const TPtrC8RelativePath()const

Gets IMAP-specific information for the relative location of the entry to the parent email message.

Return Value
Relative location

Reset ( )

IMPORT_C voidReset()

Resets all header field values.

RestoreL ( CMsvStore & )

IMPORT_C voidRestoreL(CMsvStore &aMessageStore)

Restores settings from a specified message store.

Parameters
aMessageStoreMessage store to read from

SetContentBaseL ( const TDesC8 & )

IMPORT_C voidSetContentBaseL(const TDesC8 &aPath)

Sets the Content-Base field value.

Sets the Content-Base field value.

Parameters
aPathField value

SetContentDescriptionL ( const TDesC8 & )

IMPORT_C voidSetContentDescriptionL(const TDesC8 &aPath)

Sets the Content-Description field value.

The value is MIME defined and should always be 8-bit.

Sets the Content-Description field value.

The value is MIME defined and should always be 8-bit.

Parameters
aPathField value

SetContentDispositionL ( const TDesC8 & )

IMPORT_C voidSetContentDispositionL(const TDesC8 &aPath)

Sets the Content-Disposition field value (either inline or attachment).

The value is MIME defined and should always be 8-bit.

Sets the Content-Disposition field value (either inline or attachment).

The value is MIME defined and should always be 8-bit.

Parameters
aPathField value

SetContentIDL ( const TDesC8 & )

IMPORT_C voidSetContentIDL(const TDesC8 &aPath)

Sets the Content-ID field value.

Sets the Content-ID field value.

Parameters
aPathField value

SetContentLocationL ( const TDesC16 & )

IMPORT_C voidSetContentLocationL(const TDesC16 &aPath)

Sets the Content-Location field value.

Sets the Content-Location field value.

Parameters
aPathField value

SetContentSubTypeL ( const TDesC8 & )

IMPORT_C voidSetContentSubTypeL(const TDesC8 &aPath)

Sets the Content-Type subtype field value (e.g. "plain" in Content-Type:text/plain).

The value is MIME defined and should always be 8-bit.

Sets the Content-Type subtype field value (e.g. "plain" in Content-Type:text/plain).

The value is MIME defined and should always be 8-bit.

Parameters
aPathField value

SetContentTransferEncodingL ( const TDesC8 & )

IMPORT_C voidSetContentTransferEncodingL(const TDesC8 &aType)

Sets the Content-Transfer-Encoding field value.

Sets the Content-Transfer-Encoding field value.

Parameters
aTypeField value

SetContentTypeL ( const TDesC8 & )

IMPORT_C voidSetContentTypeL(const TDesC8 &aPath)

Sets the Content-Type field value (e.g. "text" in Content-Type:text/plain).

The value is MIME defined and should always be 8-bit.

Sets the Content-Type field value (e.g. "text" in Content-Type:text/plain).

The value is MIME defined and should always be 8-bit.

Parameters
aPathField value

SetMimeCharset ( const TUint )

IMPORT_C voidSetMimeCharset(const TUintaCharset)

Sets the character set used in decoding the email MIME part.

UID values for different MIME charsets are in charconv.h

Parameters
aCharsetCharacter set

SetRelativePathL ( const TDesC8 & )

IMPORT_C voidSetRelativePathL(const TDesC8 &aPath)

Sets IMAP-specific information for the relative location of the entry to the parent email message.

Sets IMAP-specific information for the relative location of the entry to the parent email message.

Parameters
aPathRelative location

SetVersion ( TUint16 )

voidSetVersion(TUint16aVersion)[inline]

Size ( )

IMPORT_C TIntSize()

Estimates the size of the MIME header, constructed using the values stored.

Return Value
Size (bytes)

StoreL ( CMsvStore & )

IMPORT_C voidStoreL(CMsvStore &aMessageStore)const

Stores settings to a specified message store.

Parameters
aMessageStoreMessage store to write to

StoreWithoutCommitL ( CMsvStore & )

IMPORT_C voidStoreWithoutCommitL(CMsvStore &aMessageStore)const

Stores, but does not commit, settings to a specified message store.

Parameters
aMessageStoreMessage store to write to

Version ( )

const TUint16Version()const [inline]

XTypeParams ( )

const CDesC8Array &XTypeParams()const [inline]

XTypeParams ( )

CDesC8Array &XTypeParams()[inline]