class CMsvStore : public CBase |
Provides an interface over the message store that is associated with a message entry. It is similar to the dictionary store in supporting the concept of streams referenced by UID.
This class is intended for use by MTM implementations. Message client applications access the store through the higher-level functions provided by Client-side and User Interface MTMs.
A CMsvStore object is created by a CMsvEntry object and passed to a client process. The client process then becomes responsible for deleting the CMsvStore object. The store can be opened in two modes, read or edit, and only one CMsvStore object can have edit access to a store.
CMsvStore provides functions for general manipulation of the store, and for accessing the standard body text stream. RMsvReadStream and RMsvWriteStream must be used to access other streams.
Public Member Functions | |
---|---|
~CMsvStore() | |
IMPORT_C MMsvAttachmentManagerSync & | AttachmentManagerExtensionsL() |
IMPORT_C MMsvAttachmentManager & | AttachmentManagerL() |
IMPORT_C TInt | Commit() |
IMPORT_C void | CommitL() |
IMPORT_C void | CreateShareProtectedAttachmentL(const TDesC &, RFile &, CMsvAttachment *) |
IMPORT_C void | DeleteBodyTextL() |
IMPORT_C void | DeleteL() |
IMPORT_C TBool | HasBodyTextL() |
IMPORT_C CMsvPlainBodyText * | InitialisePlainBodyTextForReadL(TInt) |
IMPORT_C CMsvPlainBodyText * | InitialisePlainBodyTextForWriteL(TBool, TUint, TUint) |
IMPORT_C TBool | IsNullL() |
IMPORT_C TBool | IsPresentL(TUid) |
IMPORT_C void | Remove(TUid) |
IMPORT_C void | RemoveL(TUid) |
void | Restore8BitBodyTextL(RFileReadStream &) |
IMPORT_C void | RestoreBodyTextL(CRichText &) |
IMPORT_C void | RestoreBodyTextL(CRichText &, TUint) |
IMPORT_C void | Revert() |
IMPORT_C void | RevertL() |
IMPORT_C TInt | SizeL() |
IMPORT_C void | StoreBodyTextL(const CRichText &) |
Protected Member Functions | |
---|---|
CMsvStore(MMsvStoreObserver &, RFs &, TMsvId, MMsvStoreManager &) | |
IMPORT_C CMsvStore * | OpenForReadL(MMsvStoreObserver &, RFs &, MMsvStoreManager &, TMsvId) |
IMPORT_C CMsvStore * | OpenForWriteL(MMsvStoreObserver &, RFs &, MMsvStoreManager &, TMsvId) |
Private Member Functions | |
---|---|
void | ConstructL(TBool) |
void | Convert8BitToRichTextL(RFile &, CRichText &, TUint, TUint) |
void | GetRichTextFrom16BitL(RFile &, CRichText &) |
void | GetRichTextFrom8BitL(RFile &, CRichText &, TUint, TUint) |
void | Lock() |
void | RestorePlainBodyTextL(CRichText &, TUint) |
const CMsvCachedStore & | Store() |
CMsvCachedStore & | Store() |
Private Attributes | |
---|---|
CMsvAttachmentManager * | iAttachmentManager |
CMsvBodyText * | iBodyText |
TBool | iConstructed |
RFs & | iFs |
const TMsvId | iId |
enum CMsvStore::@52 | iLockStatus |
MMsvStoreObserver & | iObserver |
CMsvCachedStore * | iStore |
MMsvStoreManager & | iStoreManager |
IMPORT_C | CMsvStore | ( | MMsvStoreObserver & | aObserver, |
RFs & | aFs, | |||
TMsvId | aId, | |||
MMsvStoreManager & | aStoreManager | |||
) | [protected] |
MMsvStoreObserver & aObserver | |
RFs & aFs | |
TMsvId aId | |
MMsvStoreManager & aStoreManager |
void | Convert8BitToRichTextL | ( | RFile & | aBodyTextFile, |
CRichText & | aRichText, | |||
TUint | aCharSet, | |||
TUint | aDefaultCharSet | |||
) | [private] |
IMPORT_C void | CreateShareProtectedAttachmentL | ( | const TDesC & | aFileName, |
RFile & | aAttachmentFile, | |||
CMsvAttachment * | aAttachmentInfo | |||
) |
const TDesC & aFileName | |
RFile & aAttachmentFile | |
CMsvAttachment * aAttachmentInfo |
void | GetRichTextFrom16BitL | ( | RFile & | aBodyTextFile, |
CRichText & | aRichText | |||
) | [private] |
RFile & aBodyTextFile | |
CRichText & aRichText |
void | GetRichTextFrom8BitL | ( | RFile & | aBodyTextFile, |
CRichText & | aRichText, | |||
TUint | aCharSet, | |||
TUint | aDefaultCharSet | |||
) | [private] |
IMPORT_C CMsvPlainBodyText * | InitialisePlainBodyTextForReadL | ( | TInt | aChunkLength | ) |
TInt aChunkLength |
IMPORT_C CMsvPlainBodyText * | InitialisePlainBodyTextForWriteL | ( | TBool | aIs8Bit, |
TUint | aCharsetId, | |||
TUint | aDefaultCharsetId | |||
) |
IMPORT_C CMsvStore * | OpenForReadL | ( | MMsvStoreObserver & | aObserver, |
RFs & | aFs, | |||
MMsvStoreManager & | aStoreManager, | |||
TMsvId | aId | |||
) | [protected, static] |
MMsvStoreObserver & aObserver | |
RFs & aFs | |
MMsvStoreManager & aStoreManager | |
TMsvId aId |
IMPORT_C CMsvStore * | OpenForWriteL | ( | MMsvStoreObserver & | aObserver, |
RFs & | aFs, | |||
MMsvStoreManager & | aStoreManager, | |||
TMsvId | aId | |||
) | [protected, static] |
MMsvStoreObserver & aObserver | |
RFs & aFs | |
MMsvStoreManager & aStoreManager | |
TMsvId aId |
void | Restore8BitBodyTextL | ( | RFileReadStream & | aInputStream | ) |
RFileReadStream & aInputStream |
IMPORT_C void | RestoreBodyTextL | ( | CRichText & | aRichTextBody | ) |
CRichText & aRichTextBody |
IMPORT_C void | RestoreBodyTextL | ( | CRichText & | aRichTextBody, |
TUint | aCharsetOverride | |||
) |
CRichText & aRichTextBody | |
TUint aCharsetOverride |
void | RestorePlainBodyTextL | ( | CRichText & | aRichText, |
TUint | aCharsetOverride | |||
) | [private] |
CRichText & aRichText | |
TUint aCharsetOverride |
IMPORT_C void | StoreBodyTextL | ( | const CRichText & | aRichTextBody | ) |
const CRichText & aRichTextBody |