class CHwrRecognizer : public CBase |
CHwrRecognizer class. Interface definiton for Hwr.
Protected Member Functions | |
---|---|
IMPORT_C void | GetModelIndexListL ( TUdmType , RArray < TInt > &, const THwrUdmRange &) |
IMPORT_C void | GetSymbolModelL ( TUdmType , TInt , TPtrC &, RArray < TPoint > &, TInt &, TInt &) |
IMPORT_C TBool | IsSupportUdm () |
IMPORT_C void | LoadUdmL ( TUdmType ) |
IMPORT_C void | UnLoadUdmL ( TUdmType ) |
Private Member Functions | |
---|---|
void | AppendMatchedLanguagesL (const TDesC8 &, RArray < TInt > &) |
void | GetRanges (const TDesC8 &, TInt &, TInt &) |
TBool | Match (const TDesC8 &, TInt ) |
Private Attributes | |
---|---|
TUid | iDtor_ID_Key |
CTruiPtiEngine * | iUdmEngine |
IMPORT_C TInt | AddAuxiliaryRange | ( | const TRecognitionRange & | aRange | ) |
Appends an auxiliary range
const TRecognitionRange & aRange | The auxiliary range to be appended |
void | AppendMatchedLanguagesL | ( | const TDesC8 & | aImplementationData, |
RArray < TInt > & | aResult | |||
) | [private, static] |
Utitlity function, extract the languages and append them to array
IMPORT_C TInt | EnableGuideline | ( | const TBool | aFlag | ) |
Tell the HWR engine whether guideline is on.
const TBool aFlag | ETrue to enable guideline, and EFalse to diable. |
IMPORT_C TInt | EnableRecognitionDictionary | ( | const TBool | aFlag | ) |
Tell the engine whether to use dictionary when doing reconition.
const TBool aFlag | ETrue to enable recognition dictionary, and EFalse to diable. |
IMPORT_C void | EnableWordRecognition | ( | const TBool | aFlag | ) |
Enable or disable word recognition
const TBool aFlag | The word recognition flag, ETrue if enable word recognition, otherwise EFalse |
IMPORT_C TInt | GetAuxCandidateNum | ( | ) | const |
Retrieve the current each secondary candidate number need to be returned each time
IMPORT_C void | GetBottomGuideLinePos | ( | TInt & | aPos | ) |
Set position of HWR bottom guideline
TInt & aPos | Position to be set |
IMPORT_C TInt | GetCandidateNum | ( | ) | const |
Retrieve the current primary candidate number need to be returned each time
IMPORT_C TInt | GetDictVersion | ( | TDes & | aVersion | ) |
Retrieve an ASCII string that describes the version information of the basic recognition dictionary
TDes & aVersion | Contains recognition dictionary version string on return |
IMPORT_C TInt | GetEngineVersion | ( | TDes & | aVersion | ) |
Retrieve an ASCII string that describes the version information of the current HWR engine
TDes & aVersion | Contains the engine version string on return |
IMPORT_C void | GetModelIndexListL | ( | TUdmType | aType, |
RArray < TInt > & | aList, | |||
const THwrUdmRange & | aRange | |||
) | [protected] |
Get the filterd models by THwrUdmRange , return the indexes.
TUdmType aType | Shall set with the value TUdmType |
RArray < TInt > & aList | Store the indexes that fulfil the aRange |
const THwrUdmRange & aRange | Sepcifiy the rules that the modles shall belong to. |
void | GetRanges | ( | const TDesC8 & | aRangeData, |
TInt & | aLowerValue, | |||
TInt & | aUpperValue | |||
) | [private, static] |
Utitlity function, parse a string to range values
IMPORT_C void | GetSymbolModelL | ( | TUdmType | aType, |
TInt | aIndex, | |||
TPtrC & | aSymbolName, | |||
RArray < TPoint > & | aModel, | |||
TInt & | aHelpLine, | |||
TInt & | aBaseLine | |||
) | [protected] |
Get the filterd models by THwrUdmRange , return the indexes.
TUdmType aType | Shall set with the value TUdmType |
TInt aIndex | The index of the model. |
TPtrC & aSymbolName | Sepcifiy the rules that the modles shall belong to. |
RArray < TPoint > & aModel | Store the strokes for the model. |
TInt & aHelpLine | Store the helpline. |
TInt & aBaseLine | Store the baseline. |
IMPORT_C void | GetTopGuideLinePos | ( | TInt & | aPos | ) |
Set position of HWR top guideline
TInt & aPos | Position to be set |
IMPORT_C TBool | IsSupportUdm | ( | ) | const [protected, virtual] |
Retrieve whether the derived engine support UDM feature.
IMPORT_C void | ListAvailableLanguagesL | ( | RArray < TInt > & | aResult | ) | [static] |
Get supported language list
IMPORT_C void | ListGivenAvailableLanguagesL | ( | TUid | aImpId, |
RArray < TInt > & | aResult | |||
) | [static] |
Get supported language list of given hwr implementation instance specified by given implementation uid
IMPORT_C void | ListImplementationsL | ( | const TLanguage | aLanguage, |
RArray < TUid > & | aImpIdList | |||
) | [static] |
Get implementation uid list by supplied resolution parameters
IMPORT_C void | LoadUdmL | ( | TUdmType | aType | ) | [protected] |
Load the aType models to memory.
TUdmType aType | Shall set with the value TUdmType |
TBool | Match | ( | const TDesC8 & | aImplementationData, |
TInt | aValue | |||
) | [private, static] |
Utitlity function, indicates whether the value is included in a string.
IMPORT_C void | McrAddStrokesL | ( | const RArray < TPoint > & | aTraceData, |
RPointerArray < HBufC > & | aResult | |||
) |
Get the character candidates from the HWR engine based on the input strokes by MCR
const RArray < TPoint > & aTraceData | The array of pen trace points, each stroke is ended by stroke end mark |
RPointerArray < HBufC > & aResult | Candidate buffer array |
IMPORT_C void | McrBeginSessionL | ( | ) |
Tell the engine that a new MCR session has been started.
IMPORT_C void | McrEndSessionL | ( | RPointerArray < HBufC > & | aResult | ) |
Tell the engine that a new MCR session need to be ended, return the last result.
RPointerArray < HBufC > & aResult |
IMPORT_C CHwrRecognizer * | NewL | ( | TInt | aImpId | ) | [static] |
Two phase constructor, create instance of implementation by implementation uid.
TInt aImpId | The given implementation uid |
IMPORT_C CHwrRecognizer * | NewL | ( | const TLanguage | aLanguage, |
TUid & | aHwrImplUid | |||
) | [static] |
Two phase constructor, create instance of implementation by given language.
const TLanguage aLanguage | The language should be support by implementation instance |
TUid & aHwrImplUid | Carray the implementation uid on return |
IMPORT_C MTruiEngine * | QueryUdmInterfaceL | ( | ) |
Retrieve MTruiEngine interface pointer if the derived engine support UDM feature.
IMPORT_C TInt | Recognize | ( | const RArray < TPoint > & | aTraceData, |
RPointerArray < HBufC > & | aResult | |||
) |
Get the character candidates from the HWR engine based on the input strokes
const RArray < TPoint > & aTraceData | The array of pen trace points, each stroke is ended by stroke end mark |
RPointerArray < HBufC > & aResult | Candidate buffer array |
IMPORT_C TInt | RecognizeWithCharSet | ( | const RArray < TPoint > & | aTraceData, |
RPointerArray < HBufC > & | aResult, | |||
const TDesC & | aCharSet | |||
) |
Get the character candidates from the HWR engine based on the input strokes
const RArray < TPoint > & aTraceData | The array of pen trace points, each stroke is ended by stroke end mark |
RPointerArray < HBufC > & aResult | Candidate buffer array |
const TDesC & aCharSet | The small charset that primary range candidate should come from |
IMPORT_C TInt | RemoveAuxiliaryRange | ( | TInt | aIndex | ) |
Remove an specified auxiliary recognition range.
TInt aIndex | The index of auxiliary range to be deleted |
IMPORT_C TInt | SetAuxCandidateNum | ( | TInt | aNumber | ) |
Set the number of each secondary candidates the HWR engine should return each time
TInt aNumber | The number of each secondary candidates that HWR engine should return each time |
IMPORT_C TInt | SetCandidateNum | ( | TInt | aNumber | ) |
Set the number of primary candidate candidates the HWR engine should return each time
TInt aNumber | The number of primary candidates that HWR engine should return each time |
IMPORT_C void | SetFirstLetterOrder | ( | const TLatinLetterOrder | aOrder | ) |
Specify whether small case or upper case letter will be the first one in candidate list when the first two letters are the same if case is ignored
const TLatinLetterOrder aOrder | EUpperFirst if user wants upper case letter in the first, otherwise ELowerFirst |
IMPORT_C TInt | SetInputAreaSize | ( | TSize & | aSize | ) |
Tell the HWR engine about the size of the writing area used to input character
TSize & aSize | The size of writing area |
IMPORT_C void | SetNumberMode | ( | const TAknEditorNumericKeymap | aNumberMode | ) |
Set number mode
const TAknEditorNumericKeymap aNumberMode | Given number mode |
IMPORT_C void | SetPermittedSymbolSet | ( | const TDesC & | aSymbolSet | ) |
Set permitted recognized character set
const TDesC & aSymbolSet |
IMPORT_C TInt | SetRange | ( | const TRecognitionRange & | aRange | ) |
Set Hwr to given recognition range
const TRecognitionRange & aRange | Given recognition range |
IMPORT_C TInt | SetScreenSize | ( | TSize & | aSize | ) |
Tell the HWR engine about the size of the touch screen
TSize & aSize | The size of touch screen |
IMPORT_C TInt | SymbolModelValid | ( | const TDesC & | aSymbolName, |
const RArray < TPoint > & | aStrokes, | |||
THwrUdmRange | aScriptType, | |||
TDes & | aSimilarSymbol | |||
) | [virtual] |
Check wether the new symbol model is valid.
const TDesC & aSymbolName | The name of the symbol name. |
const RArray < TPoint > & aStrokes | Store the strokes for the model. |
THwrUdmRange aScriptType | The script that the model shall belongs to . |
TDes & aSimilarSymbol | Store the characters recognized by aStrokes |
IMPORT_C void | UnLoadUdmL | ( | TUdmType | aType | ) | [protected] |
Free the momory of the aType models
TUdmType aType | Shall set with the value TUdmType |
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.