CMsgMediaResolver Class Reference

class CMsgMediaResolver : public CBase

CMsgMediaResolver ...

MsgMedia.lib
Since
3.1

Inherits from

Constructor & Destructor Documentation

CMsgMediaResolver()

CMsgMediaResolver ( ) [private]

Constructor.

~CMsgMediaResolver()

~CMsgMediaResolver ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

2nd phase constructor.

CreateMediaInfoL(RFile &)

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.

Parameters

RFile & aFile IN Open file handle

CreateMediaInfoL(RFile &, TDataType &)

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).

Parameters

RFile & aFile IN Open file handle
TDataType & aMimeType IN Mime type of the file.

CreateMediaTypeGroupsL()

void CreateMediaTypeGroupsL ( ) [private]

Reads media type group information from resources.

DRMHelper()

CDRMHelper * DRMHelper ( ) const [inline]

Get DRM Helper

DoCreateMediaInfoL(RFile &, TDataType &)

CMsgMediaInfo * DoCreateMediaInfoL ( RFile & aFile,
TDataType & aMimeType
) [private]

Factory method that creates object of proper kind.

Parameters

RFile & aFile IN File handle to create info class from.
TDataType & aMimeType IN Already recognized mime type.

FileHandleL(const TDesC &)

IMPORT_C RFile FileHandleL ( const TDesC & aFileName )

Opens a (sharable) file handle from a file path

Parameters

const TDesC & aFileName IN File path.

FileProtectionResolver()

CFileProtectionResolver * FileProtectionResolver ( ) const [inline]

Get File Protection Resolver

MediaInfoParsed()

void MediaInfoParsed ( )

From MMediaInfoObserver

MediaType(const TDesC8 &)

IMPORT_C TMsgMediaType MediaType ( const TDesC8 & aMimeType ) const

Returns the media type of the MIME type.

Parameters

const TDesC8 & aMimeType IN Mime type

NewL()

IMPORT_C CMsgMediaResolver * NewL ( ) [static]

Factory method.

NewLC()

IMPORT_C CMsgMediaResolver * NewLC ( ) [static]

Factory method.

ParseInfoDetailsL(CMsgMediaInfo *, RFile &)

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.

Parameters

CMsgMediaInfo * aInfo IN Media info.
RFile & aFile IN Open file handle. Must be the same from which the media info is created from.

RecognizeL(RFile &, TDataType &)

IMPORT_C void RecognizeL ( RFile & aFile,
TDataType & aMimeType
)

Recognizes the MIME type of a file.

Parameters

RFile & aFile IN Open file handle
TDataType & aMimeType OUT Mime type of the file

SetCharacterSetRecognition(TBool)

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.

Parameters

TBool aEnable ETrue, Set CharSet recognition on, EFalse, Set CharSet recognition off.

Member Data Documentation

RApaLsSession iApaLsSession

RApaLsSession iApaLsSession [private]

CDRMHelper * iDRMHelper

CDRMHelper * iDRMHelper [private]

CFileProtectionResolver * iFileProt

CFileProtectionResolver * iFileProt [private]

RFs iFs

RFs iFs [private]

RPointerArray< CMsgMediaTypeGroup > iMimeGroupArray

RPointerArray < CMsgMediaTypeGroup > iMimeGroupArray [private]

TBool iRecognizeCharSet

TBool iRecognizeCharSet [private]

CActiveSchedulerWait iWait

CActiveSchedulerWait iWait [private]