class CMsgStorePropertyContainerWithContent : public CMsgStoreWritablePropertyContainer |
This class adds the capability to store content to a property container.
This class adds the capability to store content with a set of name/value pairs. The content can be accessed via descriptor buffers or file handles. File handles are used in order to more easily transfer large data within a data-caged environment.
Public Member Functions | |
---|---|
IMPORT_C void | AppendToContentL(const TDesC8 &) |
IMPORT_C TUint | ContentLengthL() |
IMPORT_C const TDesC & | ContentTypeL() |
IMPORT_C void | FetchContentToBufferL(TDes8 &, TUint) |
IMPORT_C void | FetchContentToFileL(const TDesC &) |
IMPORT_C void | OpenOriginalContentFileL(RFile &) |
IMPORT_C void | PrependToContentL(const TDesC8 &) |
IMPORT_C void | RemoveContentL() |
IMPORT_C void | ReplaceContentL(const TDesC8 &) |
IMPORT_C void | ReplaceContentWithFileL(const TDesC &) |
IMPORT_C void | SetContentTypeL(const TDesC &) |
Protected Member Functions | |
---|---|
CMsgStorePropertyContainerWithContent(CMsgStoreSessionContext &, TMsgStoreId, TMsgStoreId, TMsgStoreId) |
Protected Attributes | |
---|---|
TBool | iHasContent |
CMsgStorePropertyContainerWithContent | ( | CMsgStoreSessionContext & | aSessionContext, |
TMsgStoreId | aId, | ||
TMsgStoreId | aParentId, | ||
TMsgStoreId | aMailBoxId | ||
) | [protected] |
CMsgStoreSessionContext & aSessionContext | |
TMsgStoreId aId | |
TMsgStoreId aParentId | |
TMsgStoreId aMailBoxId |
IMPORT_C void | AppendToContentL | ( | const TDesC8 & | aBuffer | ) |
Appends the given buffer to the content in the message store.
ECapabilityWriteUserData is required to use this function.
const TDesC8 & aBuffer |
IMPORT_C void | FetchContentToBufferL | ( | TDes8 & | aBuffer, |
TUint | aStartOffset = 0 | |||
) |
Fetches the content into a buffer.
This function reads a portion or all of the content into a contiguous RAM buffer provided by the caller. The content will be will be truncated if the amount in local storage is larger than the given buffer.
ECapabilityReadUserData is required to use this function.
IMPORT_C void | FetchContentToFileL | ( | const TDesC & | aFilename | ) |
Fetches the content into the designated file.
This function copies the entire content buffer into the given file. The given file is opened in the caller's process, so any file that is accessible by the caller can be used in this call (including private files).
ECapabilityReadUserData is required to use this function.
const TDesC & aFilename |
IMPORT_C void | OpenOriginalContentFileL | ( | RFile & | aFile | ) |
Opens the original content file and transfer the file handle to the provided RFile handle.
This method is intended to be used when the message store is NOT encrypted. It leaves with KErrNotSupported if the content is encrypted. The file will be opened with EFileRead and EFileShareAny ECapabilityReadUserData is required to use this function.
RFile & aFile |
IMPORT_C void | PrependToContentL | ( | const TDesC8 & | aBuffer | ) |
Prepends the given buffer to the content in the message store.
ECapabilityWriteUserData is required to use this function.
const TDesC8 & aBuffer |
IMPORT_C void | RemoveContentL | ( | ) |
Wipes the contents of the content from local storage.
ECapabilityWriteUserData is required to use this function.
IMPORT_C void | ReplaceContentL | ( | const TDesC8 & | aBuffer | ) |
Replaces the current content with the given buffer.
ECapabilityWriteUserData is required to use this function.
const TDesC8 & aBuffer |
IMPORT_C void | ReplaceContentWithFileL | ( | const TDesC & | aFilename | ) |
Replaces the current content with the contents of the given file.
ECapabilityWriteUserData is required to use this function. The given file is opened in the caller's process, so any file that is accessible by the caller can be used in this call (including private files).
const TDesC & aFilename |
IMPORT_C void | SetContentTypeL | ( | const TDesC & | aType | ) |
Sets the type of the current content.
const TDesC & aType |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.