CMmfRecognizerUtil Class Reference

class CMmfRecognizerUtil : public CBase

MMF utility class used by MMF recognizer Maintains an array of CMMFControllerImplementationInformation objects so that data headers can be speedily matched against. Updates the array when notified by ECOM of a change to the global interface implementation registration data.

Inherits from

Constructor & Destructor Documentation

CMmfRecognizerUtil()

CMmfRecognizerUtil()[private]

constructor for MMF Recognizer utility class

~CMmfRecognizerUtil()

~CMmfRecognizerUtil()

Member Functions Documentation

ConstructL()

voidConstructL()[private]

GetMimeTypeL(const TDesC &, const TDesC8 &, TDes8 &)

IMPORT_C TMatchLevelGetMimeTypeL(const TDesC &aFileName,
const TDesC8 &aImageData,
TDes8 &aMimeType
)

Determine whether the supplied data header on its own is recognized, or the data header plus the file suffix together are recognized, and if so return the associated MIME type.

leave
KErrUnderflow Not enough data in descriptor to identify whether it is supported by any plugin.
leave
This method may also leave with one of the system-wide error codes.
Post-condition
If recognized, the caller's descriptor is filled with the MIME types

Parameters

const TDesC & aFileNameThe name of the file
const TDesC8 & aImageDataA descriptor containing the header
TDes8 & aMimeTypeA user-supplied descriptor in which the MIME type is returned

GetMimeTypesL(CDesC8Array *)

IMPORT_C voidGetMimeTypesL(CDesC8Array *aMimeTypes)[static]
Get all the mime types supported by MMF
leave
This method may leave with one of the system-wide error codes.
Post-condition
The caller's array is filled with the supported MIME types

Parameters

CDesC8Array * aMimeTypesA caller-supplied array of descriptors.

NewL()

IMPORT_C CMmfRecognizerUtil *NewL()[static]

Static factory constructor. Uses two phase construction and leaves nothing on the cleanup stack

leave
KErrNoMemory

Member Enumerations Documentation

Enum TMatchLevel

Enumerators

EMatchNone
EMatchData
EMatchName

Member Data Documentation

CBody * iBody

CBody *iBody[private]