#include <mw/cmsvplainbodytext.h>
| class CMsvPlainBodyText : public CMsgActive |
| Public Member Functions | |
|---|---|
| ~CMsvPlainBodyText() | |
| IMPORT_C TUint | CharacterSet() |
| IMPORT_C void | CommitL() |
| IMPORT_C TUint | DefaultCharacterSet() |
| CMsvPlainBodyText * | NewL(MMsvStoreManager &, CMsvStore &, TBool, TUint, TUint, TMsvId, RFs &) |
| CMsvPlainBodyText * | NewL(MMsvStoreManager &, CMsvStore &, TMsvId, RFs &, TInt) |
| IMPORT_C void | NextChunkL(TDes8 &, TRequestStatus &) |
| IMPORT_C void | NextChunkL(TDes8 &) |
| IMPORT_C void | NextChunkL(TDes16 &, TRequestStatus &) |
| IMPORT_C void | NextChunkL(TDes16 &) |
| IMPORT_C void | PreviousChunkL(TDes8 &, TRequestStatus &) |
| IMPORT_C void | PreviousChunkL(TDes8 &) |
| IMPORT_C void | PreviousChunkL(TDes16 &, TRequestStatus &) |
| IMPORT_C void | PreviousChunkL(TDes16 &) |
| IMPORT_C void | SetCharacterSetL(const TUint) |
| IMPORT_C TInt | Size() |
| IMPORT_C void | StoreChunkL(const TDesC8 &, TRequestStatus &) |
| IMPORT_C void | StoreChunkL(const TDesC8 &) |
| IMPORT_C void | StoreChunkL(const TDesC16 &, TRequestStatus &) |
| IMPORT_C void | StoreChunkL(const TDesC16 &) |
| IMPORT_C void | StoreRichTextAsPlainTextL(CRichText &) |
| Inherited Attributes | |
|---|---|
| CActive::iStatus | |
| Inherited Enumerations | |
|---|---|
| CActive:TPriority | |
This class encapsulates plainbody text information for storage within the Message Store.It also populates a CRichText object with the 8 bit data decoded to the specified character set.If a character set is not specified, then the default character set is used.
| IMPORT_C void | CommitL | ( | ) |
Commit the file and the store after it is written and and also closes the file.
| IMPORT_C TUint | DefaultCharacterSet | ( | ) |
Returns the default charset for the plain text part
| CMsvPlainBodyText * | NewL | ( | MMsvStoreManager & | aMsvStoreManager, |
| CMsvStore & | aStore, | |||
| TBool | aIs8Bit, | |||
| TUint | aCharsetId, | |||
| TUint | aDefaultCharsetId, | |||
| TMsvId | aMessageId, | |||
| RFs & | aFs | |||
| ) | [static] | |||
The NewL factory function for Write operation.
| Parameters | |
|---|---|
| aMsvStoreManager | The MMsvStoreManager reference to call Store related RFile APIs |
| aStore | The CMsvStore object. |
| aIs8Bit | TBool indicating whether to store bdy text as 8/16 bit. |
| aCharsetId | The charset of the body part. |
| aDefaultCharsetId | The default charset of the system. |
| aMessageId | The Id of the message that is to be stored. |
| aFs | The RFs for handling RFile related operations. |
| CMsvPlainBodyText * | NewL | ( | MMsvStoreManager & | aMsvStoreManager, |
| CMsvStore & | aStore, | |||
| TMsvId | aMessageId, | |||
| RFs & | aFs, | |||
| TInt | aChunkLength | |||
| ) | [static] | |||
Overloaded NewL for Read operation.
| Parameters | |
|---|---|
| aMsvStoreManager | The MMsvStoreManager reference to call Store related RFile APIs |
| aStore | The CMsvStore object. |
| aMessageId | The Id of the message that is to be stored. |
| aFs | The RFs for handling RFile related operations. |
| aChunkLength | The length of the chunk that will be stored/restored in single operaion |
| IMPORT_C void | NextChunkL | ( | TDes8 & | aChunk, |
| TRequestStatus & | aStatus | |||
| ) | ||||
| Parameters | |
|---|---|
| aChunk | The output parameter contains the requested chunk. |
| Leave Codes | |
|---|---|
| KErrAccessDenied | If |
| KErrNotSupported | If 16-bit storage is enabled. |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | NextChunkL | ( | TDes8 & | aChunk | ) |
| Parameters | |
|---|---|
| aChunk | The output parameter contains the requested chunk. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If |
| KErrNotSupported | If 16-bit storage is enabled. |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | NextChunkL | ( | TDes16 & | aChunk, |
| TRequestStatus & | aStatus | |||
| ) | ||||
| Parameters | |
|---|---|
| aChunk | The output parameter contains the requested chunk.If no more data is in Store this contains NULL descriptor. |
| aStatus | The TRequestStatus for this request. |
| Leave Codes | |
|---|---|
| KErrAccessDenied | If |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | NextChunkL | ( | TDes16 & | aChunk | ) |
| Parameters | |
|---|---|
| aChunk | The output parameter contains the requested chunk.If no more data is in Store this contains NULL descriptor. |
| Leave Codes | |
|---|---|
| KErrAccessDenied | If |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | PreviousChunkL | ( | TDes8 & | aChunk, |
| TRequestStatus & | aStatus | |||
| ) | ||||
| Parameters | |
|---|---|
| aChunk | The output parameter containing the requested chunk on completion. |
| aStatus | The TRequestStatus for this request. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If 16-bit storage is enabled. |
| KErrAccessDenied | If |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | PreviousChunkL | ( | TDes8 & | aChunk | ) |
| Parameters | |
|---|---|
| aChunk | The output parameter containing the requested chunk. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If 16-bit storage is enabled. |
| KErrAccessDenied | If |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | PreviousChunkL | ( | TDes16 & | aChunk, |
| TRequestStatus & | aStatus | |||
| ) | ||||
| Parameters | |
|---|---|
| aChunk | The output parameter containing the requested chunk on completion. |
| aStatus | The TRequestStatus for this request. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | PreviousChunkL | ( | TDes16 & | aChunk | ) |
| Parameters | |
|---|---|
| aChunk | The output parameter contains the requested chunk. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If |
| KErrUnderflow | If aChunk MaxLength is less than iChunkMaxLength. |
| Other | Standard system-wide error codes. |
| IMPORT_C void | SetCharacterSetL | ( | const TUint | aCharset | ) |
Set iCharsetId to aCharset if body text of the message was downloaded as 8 bit. This can be used to override the charset with which a message was downloaded, when the body text is opened for reading.
| Parameters | |
|---|---|
| aCharset | The new charset with which it needs to be converted. |
| IMPORT_C TInt | Size | ( | ) |
Returns the size of body text in bytes.
| IMPORT_C void | StoreChunkL | ( | const TDesC8 & | aChunk, |
| TRequestStatus & | aStatus | |||
| ) | ||||
| Leave Codes | |
|---|---|
| KErrAccessDenied. | If |
| Other | Standard system-wide error codes. |
| IMPORT_C void | StoreChunkL | ( | const TDesC8 & | aChunk | ) |
| Leave Codes | |
|---|---|
| KErrAccessDenied. | If |
| Other | Standard system-wide error codes. |
| IMPORT_C void | StoreChunkL | ( | const TDesC16 & | aChunk, |
| TRequestStatus & | aStatus | |||
| ) | ||||
| Parameters | |
|---|---|
| aChunk | The 16 bit chunk that is to be stored. |
| aStatus | The TRequestStatus parameter for this request. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If the 8-bit storage was enabled. |
| KErrAccessDenied | If |
| Other | Standard system-wide error codes. |
| IMPORT_C void | StoreChunkL | ( | const TDesC16 & | aChunk | ) |
| Parameters | |
|---|---|
| aChunk | The 16 bit chunk that is to be stored. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If the 8-bit storage was enabled. |
| KErrAccessDenied | If |
| Other | Standard system-wide error codes. |
| IMPORT_C void | StoreRichTextAsPlainTextL | ( | CRichText & | aRichText | ) |
| Parameters | |
|---|---|
| aRichText | The CRichText object that will be stored as plain body text. |
| Leave Codes | |
|---|---|
| KErrNotSupported | If |
| Other | Standard system-wide error codes. |