class CMsgMediaResolver : public CBase |
Public Member Functions | |
---|---|
~CMsgMediaResolver () | |
IMPORT_C CMsgMediaInfo * | CreateMediaInfoL ( RFile &) |
IMPORT_C CMsgMediaInfo * | CreateMediaInfoL ( RFile &, TDataType &) |
CDRMHelper * | DRMHelper () |
IMPORT_C RFile | FileHandleL (const TDesC &) |
CFileProtectionResolver * | FileProtectionResolver () |
void | MediaInfoParsed () |
IMPORT_C TMsgMediaType | MediaType (const TDesC8 &) |
IMPORT_C CMsgMediaResolver * | NewL () |
IMPORT_C CMsgMediaResolver * | NewLC () |
IMPORT_C void | ParseInfoDetailsL (CMsgMediaInfo *, RFile &) |
IMPORT_C void | RecognizeL ( RFile &, TDataType &) |
void | SetCharacterSetRecognition ( TBool ) |
Private Member Functions | |
---|---|
CMsgMediaResolver () | |
void | ConstructL () |
void | CreateMediaTypeGroupsL () |
CMsgMediaInfo * | DoCreateMediaInfoL ( RFile &, TDataType &) |
Private Attributes | |
---|---|
RApaLsSession | iApaLsSession |
CDRMHelper * | iDRMHelper |
CFileProtectionResolver * | iFileProt |
RFs | iFs |
RPointerArray < CMsgMediaTypeGroup > | iMimeGroupArray |
TBool | iRecognizeCharSet |
CActiveSchedulerWait | iWait |
IMPORT_C CMsgMediaInfo * | CreateMediaInfoL | ( | RFile & | aFile | ) |
Resolve the file information of the given file and return the media info instance to the caller.
Does the same as ResolveFileL except returns the media info class instead of boolean value.
RFile & aFile | IN Open file handle |
IMPORT_C CMsgMediaInfo * | CreateMediaInfoL | ( | RFile & | aFile, |
TDataType & | aMimeType | |||
) |
Resolve the file information of the given file and return the media info instance to the caller.
Does the same as ResolveFileTransferInfoL except does not recognize the file (uses given mime type).
void | CreateMediaTypeGroupsL | ( | ) | [private] |
Reads media type group information from resources.
CMsgMediaInfo * | DoCreateMediaInfoL | ( | RFile & | aFile, |
TDataType & | aMimeType | |||
) | [private] |
Factory method that creates object of proper kind.
IMPORT_C RFile | FileHandleL | ( | const TDesC & | aFileName | ) |
Opens a (sharable) file handle from a file path
const TDesC & aFileName | IN File path. |
CFileProtectionResolver * | FileProtectionResolver | ( | ) | const [inline] |
Get File Protection Resolver
IMPORT_C TMsgMediaType | MediaType | ( | const TDesC8 & | aMimeType | ) | const |
Returns the media type of the MIME type.
const TDesC8 & aMimeType | IN Mime type |
IMPORT_C void | ParseInfoDetailsL | ( | CMsgMediaInfo * | aInfo, |
RFile & | aFile | |||
) |
Parse media info details synchronously.
The usage of this method is highly discouraged since it uses CActiveSchedulerWait for synchronizing the parsing. The preferred way is to use the asynchronous version of ParseInfoDetailsL provided by CMsgMediaInfo.
CMsgMediaInfo * aInfo | IN Media info. |
RFile & aFile | IN Open file handle. Must be the same from which the media info is created from. |
IMPORT_C void | RecognizeL | ( | RFile & | aFile, |
TDataType & | aMimeType | |||
) |
Recognizes the MIME type of a file.
void | SetCharacterSetRecognition | ( | TBool | aEnable | ) | [inline] |
Enable/disable character set recognition. If disabled it is assumed that the client knows and sets the character set to text info objects itself.
TBool aEnable | ETrue, Set CharSet recognition on, EFalse, Set CharSet recognition off. |
RPointerArray < CMsgMediaTypeGroup > | iMimeGroupArray | [private] |
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.