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

voidConstructL()[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 & aFileIN 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 & aFileIN Open file handle
TDataType & aMimeTypeIN Mime type of the file.

CreateMediaTypeGroupsL()

voidCreateMediaTypeGroupsL()[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 & aFileIN File handle to create info class from.
TDataType & aMimeTypeIN Already recognized mime type.

FileHandleL(const TDesC &)

IMPORT_C RFileFileHandleL(const TDesC &aFileName)

Opens a (sharable) file handle from a file path

Parameters

const TDesC & aFileNameIN File path.

FileProtectionResolver()

CFileProtectionResolver *FileProtectionResolver()const [inline]

Get File Protection Resolver

MediaInfoParsed()

voidMediaInfoParsed()

From MMediaInfoObserver

MediaType(const TDesC8 &)

IMPORT_C TMsgMediaTypeMediaType(const TDesC8 &aMimeType)const

Returns the media type of the MIME type.

Parameters

const TDesC8 & aMimeTypeIN Mime type

NewL()

IMPORT_C CMsgMediaResolver *NewL()[static]

Factory method.

NewLC()

IMPORT_C CMsgMediaResolver *NewLC()[static]

Factory method.

ParseInfoDetailsL(CMsgMediaInfo *, RFile &)

IMPORT_C voidParseInfoDetailsL(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 * aInfoIN Media info.
RFile & aFileIN Open file handle. Must be the same from which the media info is created from.

RecognizeL(RFile &, TDataType &)

IMPORT_C voidRecognizeL(RFile &aFile,
TDataType &aMimeType
)

Recognizes the MIME type of a file.

Parameters

RFile & aFileIN Open file handle
TDataType & aMimeTypeOUT Mime type of the file

SetCharacterSetRecognition(TBool)

voidSetCharacterSetRecognition(TBoolaEnable)[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 aEnableETrue, Set CharSet recognition on, EFalse, Set CharSet recognition off.

Member Data Documentation

RApaLsSession iApaLsSession

RApaLsSessioniApaLsSession[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]