Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <MIUTHDR.H>
Link against: imcm.lib

Class CImMimeHeader

class CImMimeHeader : public CBase;

Description

Stores a MIME email header.

Derivation

Members

Defined in CImMimeHeader:

Inherited from CBase:


Construction and destruction


NewLC()

IMPORT_C static CImMimeHeader* NewLC();

Description

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

Return value

CImMimeHeader *

New CImMimeHeader object


NewL()

IMPORT_C static CImMimeHeader* NewL();

Description

Allocates and creates a new CImMimeHeader object.

Return value

CImMimeHeader *

New CImMimeHeader object


~CImMimeHeader()

IMPORT_C ~CImMimeHeader();

Description

Destructor.

[Top]


Member functions


Reset()

IMPORT_C void Reset();

Description

Resets all header field values.


Size()

IMPORT_C TInt Size();

Description

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

Return value

TInt

Size (bytes)


InternalizeL(RMsvReadStream &)

IMPORT_C void InternalizeL(RMsvReadStream &aReadStream);

Description

Internalises the settings from a specified stream.

Parameters

RMsvReadStream &aReadStream

Stream to read from


ExternalizeL(RMsvWriteStream &)const

IMPORT_C void ExternalizeL(RMsvWriteStream &aWriteStream) const;

Description

Externalises the settings to a specified stream.

Parameters

RMsvWriteStream &aWriteStream

Stream to write to


RestoreL(CMsvStore &)

IMPORT_C void RestoreL(CMsvStore &aMessageStore);

Description

Restores settings from a specified message store.

Parameters

CMsvStore &aMessageStore

Message store to read from


StoreL(CMsvStore &)const

IMPORT_C void StoreL(CMsvStore &aMessageStore) const;

Description

Stores settings to a specified message store.

Parameters

CMsvStore &aMessageStore

Message store to write to


StoreWithoutCommitL(CMsvStore &)const

IMPORT_C void StoreWithoutCommitL(CMsvStore &aMessageStore) const;

Description

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

Parameters

CMsvStore &aMessageStore

Message store to write to


SetContentTypeL(const TDesC8 &)

IMPORT_C void SetContentTypeL(const TDesC8 &aPath);

Description

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

const TDesC8 &aPath

Field value


ContentType()const

IMPORT_C const TPtrC8 ContentType() const;

Description

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

Return value

const TPtrC8

Field value


SetContentSubTypeL(const TDesC8 &)

IMPORT_C void SetContentSubTypeL(const TDesC8 &aPath);

Description

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

const TDesC8 &aPath

Field value


ContentSubType()const

IMPORT_C const TPtrC8 ContentSubType() const;

Description

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

const TPtrC8

Field value


SetContentDispositionL(const TDesC8 &)

IMPORT_C void SetContentDispositionL(const TDesC8 &aPath);

Description

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

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

Parameters

const TDesC8 &aPath

Field value


ContentDisposition()const

IMPORT_C const TPtrC8 ContentDisposition() const;

Description

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

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

Return value

const TPtrC8

Field value


SetContentDescriptionL(const TDesC8 &)

IMPORT_C void SetContentDescriptionL(const TDesC8 &aPath);

Description

Sets the Content-Description field value.

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

Parameters

const TDesC8 &aPath

Field value


ContentDescription()const

IMPORT_C const TPtrC8 ContentDescription() const;

Description

Gets the Content-Description field value.

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

Return value

const TPtrC8

Field value


SetContentBaseL(const TDesC8 &)

IMPORT_C void SetContentBaseL(const TDesC8 &aPath);

Description

Sets the Content-Base field value.

Parameters

const TDesC8 &aPath

Field value


ContentBase()const

IMPORT_C const TPtrC8 ContentBase() const;

Description

Gets the Content-Base field value.

Return value

const TPtrC8

Field value


SetContentIDL(const TDesC8 &)

IMPORT_C void SetContentIDL(const TDesC8 &aPath);

Description

Sets the Content-ID field value.

Parameters

const TDesC8 &aPath

Field value


ContentID()const

IMPORT_C const TPtrC8 ContentID() const;

Description

Gets the Content-ID field value.

Return value

const TPtrC8

Field value


SetContentLocationL(const TDesC16 &)

IMPORT_C void SetContentLocationL(const TDesC16 &aPath);

Description

Sets the Content-Location field value.

Parameters

const TDesC16 &aPath

Field value


ContentLocation()const

IMPORT_C const TPtrC16 ContentLocation() const;

Description

Gets the Content-Location field value.

Return value

const TPtrC16

Field value


SetRelativePathL(const TDesC8 &)

IMPORT_C void SetRelativePathL(const TDesC8 &aPath);

Description

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

Parameters

const TDesC8 &aPath

Relative location


RelativePath()const

IMPORT_C const TPtrC8 RelativePath() const;

Description

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

Return value

const TPtrC8

Relative location


SetContentTransferEncodingL(const TDesC8 &)

IMPORT_C void SetContentTransferEncodingL(const TDesC8 &aType);

Description

Sets the Content-Transfer-Encoding field value.

Parameters

const TDesC8 &aType

Field value


ContentTransferEncoding()const

IMPORT_C TImEncodingType ContentTransferEncoding() const;

Description

Gets the Content-Transfer-Encoding field value.

Return value

TImEncodingType

Field value


ContentTransferEncoding(TDes8 &)const

IMPORT_C TImEncodingType ContentTransferEncoding(TDes8 &rType) const;

Description

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

Parameters

TDes8 &rType

On return, the field value as a string

Return value

TImEncodingType

Field value


GetContentTypeValue(const TDesC8 &)const

IMPORT_C const TPtrC8 GetContentTypeValue(const TDesC8 &aContentTypeParameter) const;

Description

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

const TDesC8 &aContentTypeParameter

Parameter type

Return value

const TPtrC8

Parameter value


ContentTypeParams()const

inline const CDesC8Array& ContentTypeParams() const;

Description

Gets the const Content-Type parameters and their associated values.

Return value

const CDesC8Array &

Parameters and associated values


ContentDispositionParams()const

inline const CDesC8Array& ContentDispositionParams() const;

Description

Gets the const Content-Disposition parameters and their associated values.

Return value

const CDesC8Array &

Parameters and associated values


XTypeParams()const

inline const CDesC8Array& XTypeParams() const;

Description

Gets the const MIME header parameters and their associated values. This can be used by any MIME header fields.

Return value

const CDesC8Array &

Parameters and associated values


ContentTypeParams()

inline CDesC8Array& ContentTypeParams();

Description

Gets the Content-Type parameters and their associated values.

Return value

CDesC8Array &

Parameters and associated values


ContentDispositionParams()

inline CDesC8Array& ContentDispositionParams();

Description

Gets the Content-Disposition parameters and their associated values.

Return value

CDesC8Array &

Parameters and associated values


XTypeParams()

inline CDesC8Array& XTypeParams();

Description

Gets the MIME header parameters and their associated values. This can be used by any MIME header fields.

Return value

CDesC8Array &

Parameters and associated values


Version()const

inline const TUint16 Version() const;

Description

Return value

const TUint16


SetVersion(TUint16)

inline void SetVersion(TUint16 aVersion);

Description

Parameters

TUint16 aVersion


SetMimeCharset(const TUint)

IMPORT_C void SetMimeCharset(const TUint aCharset);

Description

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

UID values for different MIME charsets are in charconv.h

Parameters

const TUint aCharset

Character set


MimeCharset()const

IMPORT_C TUint MimeCharset() const;

Description

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

UID values for different MIME charsets are in charconv.h

Return value

TUint

Character set