The MIME recognizers are used by the client applications for data type recognition. When there is a client request to the AppArc for data type recognition, AppArc internally uses the MIME recognition framework for processing the request.
The client connects to AppArc and creates a session using the class RApaLsSession. Apparc provides access to the MIME framework via RApaLsSession APIs. The class provides the APIs for data type recognition.
All MIME (data) recognizers are derived from the abstract base class, CApaDataRecognizerType. The RApaLsSession data recognition APIs access the properties of CApaDataRecognizerType for data type recognition.
A TDataRecognitionResult object is returned to AppArc. The object contains the data (MIME) type and the confidence of recognition.
AppArc attempts to find the application that can best handle the identified data type. It is not guaranteed that an application will be available to handle a data type, even after successful recognition.
Notes:
The overloads of RApaLsSession::RecognizeFilesL() are used to recognize all files contained in a specified directory.
RApaLsSession::GetAcceptedConfidence() and RApaLsSession::SetAcceptedConfidence() retrieve and set the accepted confidence level of the MIME framework. The default value is ECertain.
RApaLsSession::GetSupportedDataTypesL() retrieves the list of data types supported by all recognizers in the recognizer list of the MIME framework.
The preferred buffer size determines the amount of data passed to DoRecognizeL() function. The preferred buffer size can be retrieved using RApaLsSession::GetPreferredBufSize(). This value cannot be greater than the maximum buffer value.
The maximum value for the buffer is set by using RApaLsSession::SetMaxDataBufSize(). If the maximum buffer size is not set by the client, the default value is 256 bytes. The maximum buffer size can be retrieved using RApaLsSession::GetMaxDataBufSize().
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.