CIclRecognizerUtil Class Reference

class CIclRecognizerUtil : public CBase

ICL utility class used by ICL recognizer Maintains an array of CImplementationInformation 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

CIclRecognizerUtil()

CIclRecognizerUtil()[private]

constructor for ICL Recognizer utility class

~CIclRecognizerUtil()

~CIclRecognizerUtil()

Member Functions Documentation

ConstructL()

voidConstructL()[private]

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

IMPORT_C TBoolGetMimeTypeL(const TDesC8 &aImageData,
const TDesC &aFileName,
TDes8 &aMimeType
)
Determine whether the supplied data header or file extension is recognized and if so return the associated MIME type
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 TDesC8 & aImageDataA descriptor containing the header. Set to KNullDesC8 for match by file extension.
const TDesC & aFileNameA file name for file extension matching. Set to KNullDesC for match by image data
TDes8 & aMimeTypeA user-supplied descriptor in which the MIME type is returned

NewL()

IMPORT_C CIclRecognizerUtil *NewL()[static]

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

leave
KErrNoMemory

Member Data Documentation

CBody * iBody

CBody *iBody[private]