Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <CIMPLAINBODYTEXT.H>
Link against: imcm.lib
This item is not part of the S60 5th Edition SDK

Class CImPlainBodyText

class CImPlainBodyText : public CMsgActive;

Description

This class is a wrapper over CMsvPlainBodyText class of message server. The pointer to this class can be obtained by calling OpenPlainBodyTextForReadL or OpenPlainBodyTextForWriteL API of the CImEmailMessage class. This can be used to store/restore a email message created by using the CImEmailOperation class.

Derivation

Members

Defined in CImPlainBodyText:

See also:


Construction and destruction


~CImPlainBodyText()

IMPORT_C ~CImPlainBodyText();

Description

Destructor

[Top]


Member functions


StoreChunkL(const TDesC8 &,TRequestStatus &)

IMPORT_C void StoreChunkL(const TDesC8 &aChunk, TRequestStatus &aStatus);

Description

Store the plain body text part in chunks.

Parameters

const TDesC8 &aChunk

TRequestStatus &aStatus

Leave codes

KErrAccessDenied.

If CMsvStore was opened in Read mode or If CommitL is already called.

Other

Standard system-wide error codes.


StoreChunkL(const TDesC8 &)

IMPORT_C void StoreChunkL(const TDesC8 &aChunk);

Description

Store the plain body text part in chunks,synchronous version.

Parameters

const TDesC8 &aChunk

Leave codes

KErrAccessDenied.

If CMsvStore was opened in Read mode or If CommitL is already called.

Other

Standard system-wide error codes.


StoreChunkL(const TDesC16 &,TRequestStatus &)

IMPORT_C void StoreChunkL(const TDesC16 &aChunk, TRequestStatus &aStatus);

Description

Store the body part in chunks(16 bit version).

Parameters

const TDesC16 &aChunk

The 16 bit chunk that is to be stored.

TRequestStatus &aStatus

The TRequestStatus parameter for this request.

Leave codes

KErrNotSupported

If the 8-bit storage was enabled.

KErrAccessDenied

If CMsvStore was opened in Read mode or IfCommitL is already called.

Other

Standard system-wide error codes.


StoreChunkL(const TDesC16 &)

IMPORT_C void StoreChunkL(const TDesC16 &aChunk);

Description

Store the body part in chunks(16 bit synchronous version).

Parameters

const TDesC16 &aChunk

The 16 bit chunk that is to be stored.

Leave codes

KErrNotSupported

If the 8-bit storage was enabled.

KErrAccessDenied

If CMsvStore was opened in Read mode or If CommitL is already called.

Other

Standard system-wide error codes.


StoreRichTextAsPlainTextL(CRichText &)

IMPORT_C void StoreRichTextAsPlainTextL(CRichText &aRichText);

Description

Converts and stores the CRichText contents to a plain text.

Parameters

CRichText &aRichText

The CRichText object that will be stored as plain body text.

Leave codes

KErrNotSupported

If the 8-bit storage was enabled.

KErrAccessDenied

If CMsvStore was opened in Read mode or If CommitL is already called.

Other

Standard system-wide error codes.


CommitL(TRequestStatus &)

IMPORT_C void CommitL(TRequestStatus &aStatus);

Description

Commits the email message after it has been completed.

Parameters

TRequestStatus &aStatus

The TRequestStatus parameter for this request.


CommitL(TRequestStatus &,CImMimeHeader &)

IMPORT_C void CommitL(TRequestStatus &aStatus, CImMimeHeader &aMimeHeader);

Description

Commits the email message after it has been completed along with mime header for this message.

Parameters

TRequestStatus &aStatus

The TRequestStatus parameter for this request.

CImMimeHeader &aMimeHeader

The CMimeHeader for this message.


NextChunkL(TDes8 &,TRequestStatus &)

IMPORT_C void NextChunkL(TDes8 &aChunk, TRequestStatus &aStatus);

Description

Retrieve the next chunk of the plain body text.

Parameters

TDes8 &aChunk

The output parameter contains the requested chunk.

TRequestStatus &aStatus

Leave codes

KErrAccessDenied

If CMsvStore was opened in Write mode.

KErrNotSupported

If 16-bit storage is enabled.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


NextChunkL(TDes8 &)

IMPORT_C void NextChunkL(TDes8 &aChunk);

Description

Retrieve the next chunk of the plain body text.

Parameters

TDes8 &aChunk

The output parameter contains the requested chunk.

Leave codes

KErrNotSupported

If CMsvStore was opened in Write mode.

KErrNotSupported

If 16-bit storage is enabled.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


NextChunkL(TDes16 &,TRequestStatus &)

IMPORT_C void NextChunkL(TDes16 &aChunk, TRequestStatus &aStatus);

Description

Restore the plain body text into chunks.

Parameters

TDes16 &aChunk

The output parameter contains the requested chunk on completion.

TRequestStatus &aStatus

The TRequestStatus parameter for this request.

Leave codes

KErrNotSupported

If CMsvStore was opened in Write mode.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


NextChunkL(TDes16 &)

IMPORT_C void NextChunkL(TDes16 &aChunk);

Description

Restores the plain body text into chunks.

Parameters

TDes16 &aChunk

The output parameter contains the requested chunk on completion.

Leave codes

KErrNotSupported

If CMsvStore was opened in Write mode.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


PreviousChunkL(TDes8 &,TRequestStatus &)

IMPORT_C void PreviousChunkL(TDes8 &aChunk, TRequestStatus &aStatus);

Description

Retrieve the next chunk of the plain body text.

Parameters

TDes8 &aChunk

The output parameter contains the requested chunk.

TRequestStatus &aStatus

Leave codes

KErrNotSupported

If CMsvStore was opened in Write mode.

KErrNotSupported

If 16-bit storage is enabled.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


PreviousChunkL(TDes8 &)

IMPORT_C void PreviousChunkL(TDes8 &aChunk);

Description

Retrieve the next chunk of the plain body text.

Parameters

TDes8 &aChunk

The output parameter contains the requested chunk.

Leave codes

KErrNotSupported

If CMsvStore was opened in Write mode.

KErrNotSupported

If 16-bit storage is enabled.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


PreviousChunkL(TDes16 &,TRequestStatus &)

IMPORT_C void PreviousChunkL(TDes16 &aChunk, TRequestStatus &aStatus);

Description

Restore the plain body text into chunks.

Parameters

TDes16 &aChunk

The output parameter contains the requested chunk on completion.

TRequestStatus &aStatus

The TRequestStatus parameter for this request.

Leave codes

KErrNotSupported

If CMsvStore was opened in Write mode.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


PreviousChunkL(TDes16 &)

IMPORT_C void PreviousChunkL(TDes16 &aChunk);

Description

Restore the plain body text into chunks.

Parameters

TDes16 &aChunk

The output parameter contains the requested chunk on completion.

Leave codes

KErrNotSupported

If CMsvStore was opened in Write mode.

KErrUnderflow

If aChunk MaxLength is less than iChunkMaxLength.

Other

Standard system-wide error codes.


DoRunL()

private: virtual void DoRunL();

Description


DoCancel()

private: virtual void DoCancel();

Description

Cancels the relavent CMsvPlainBodyText object