CTruiPtiEngine Class Reference
| class CTruiPtiEngine : public CBase |
| Public Member Functions |
|---|
| ~CTruiPtiEngine() |
| void | ChangeShortcutTextL(const TDesC &, const TDesC &) |
|
TBool
| CharacterModelExist(const TDesC &) |
|
TBool
| CheckShortcutModel(const TDesC &) |
|
TInt
| DeleteCharacterModel(const TDesC &) |
|
TInt
| DeleteShortcutModel(const TDesC &) |
| void | GetAllPresetSymbolsL(RArray< TUint > &) |
| void | GetCharacterModelL(const TDesC &, RArray< TPoint > &) |
|
TInt
| GetGuidingLinePos(const TSize &, TInt &, TInt &) |
| void | GetModelIndexListL(TUdmType, RArray< TInt > &, const THwrUdmRange &) |
| void | GetPresetSymbolByUnicodeL(TUint, RArray< TPoint > &, TDes &) |
| void | GetShortcutModelL(const TDesC &, RArray< TPoint > &, TUint &) |
| void | GetShortcutTextListL(RPointerArray< HBufC > &) |
| void | GetSymbolModelL(TUdmType, TInt, TPtrC &, RArray< TPoint > &, TInt &, TInt &) |
| void | LoadUdmL(TUdmType) |
|
TInt
| MaxShortCutLength() |
|
CTruiPtiEngine * | NewL(CHwrRecognizer *) |
|
CTruiPtiEngine * | NewLC(CHwrRecognizer *) |
| void | SavePresetShortcutL(TUint, const TDesC &) |
| void | SetCharacterModelL(const TDesC &, RArray< TPoint > &, TInt, TDes &) |
| void | SetLanguageScriptL(TInt) |
| void | SetShortcutModelL(const TDesC &, RArray< TPoint > &, TDes &) |
| void | UnLoadUdm(TUdmType) |
Constructor & Destructor Documentation
CTruiPtiEngine()
| CTruiPtiEngine | ( | ) | [private] |
~CTruiPtiEngine()
| ~CTruiPtiEngine | ( | ) | [virtual] |
Member Functions Documentation
ChangeShortcutTextL(const TDesC &, const TDesC &)
| void | ChangeShortcutTextL | ( | const TDesC & | aOldText, |
| | const TDesC & | aNewText |
| | ) | |
Change the text of an existing shortcut
Parameters
| const TDesC & aOldText | The text of an existing shortcut |
| const TDesC & aNewText | The new text of the shortcut |
CharacterModelExist(const TDesC &)
Check if character has model
Parameters
| const TDesC & aChar | The character which is checked |
CheckShortcutModel(const TDesC &)
Check if shortcut has model
Parameters
| const TDesC & aText | The shortcut which is checked |
ConstructL(CHwrRecognizer *)
ConvertUdmRange(THwrUdmRange &)
Change the query strategy.
DeleteCharacterModel(const TDesC &)
|
TInt
| DeleteCharacterModel | ( | const TDesC & | aChar | ) | |
Parameters
| const TDesC & aChar | Delete this character's model |
DeleteShortcutModel(const TDesC &)
Parameters
| const TDesC & aText | Delete this Shortcut's model |
GetAllPresetSymbolsL(RArray< TUint > &)
Return all unicodes of preset text stored in PTI engine
Parameters
| RArray< TUint > & aPresets | All preset text's unicodes are stored in this array. |
GetCharacterModelL(const TDesC &, RArray< TPoint > &)
Parameters
| const TDesC & aChar | Get this character's model |
| RArray< TPoint > & aModel | Array of points where the character's model is stored. |
GetGuidingLinePos(const TSize &, TInt &, TInt &)
Parameters
| const TSize & aSize | |
| TInt & aTop | The vertical coordinate of top guiding line |
| TInt & aBottom | The vertical coordinate of bottom guiding line |
GetModelIndexListL(TUdmType, RArray< TInt > &, const THwrUdmRange &)
Get the indexes of the symbol modles spcified by aRange.
Parameters
| TUdmType aType | Shall set the value of TUdmType |
| RArray< TInt > & aList | Store the indexed of the found symbol models. |
| const THwrUdmRange & aRange | Udm Range |
GetPresetSymbolByUnicodeL(TUint, RArray< TPoint > &, TDes &)
Get trails assigned to a preset text.
Parameters
| TUint aUnicode | The unicode of the preset text. |
| RArray< TPoint > & aModel | Store trails of the preset text. |
| TDes & aShortcut | Indicate whether the preset text has been assigned to a shortcut text. If KNullDesC, it is not in use. |
GetShortcutModelL(const TDesC &, RArray< TPoint > &, TUint &)
Parameters
| const TDesC & aText | Get this Shortcut's model |
| RArray< TPoint > & aModel | Array of points where the Shortcut's model is stored. |
| TUint & aUnicode | |
GetShortcutTextListL(RPointerArray< HBufC > &)
Get text list of all the shortcuts
GetSymbolModelL(TUdmType, TInt, TPtrC &, RArray< TPoint > &, TInt &, TInt &)
Get the model properties of the specified index
LoadUdmL(TUdmType)
Load the aType models to memory.
Parameters
| TUdmType aType | Shall set the value of TUdmType |
MaxShortCutLength()
Get the number of the maximum of shortcuts
SavePresetShortcutL(TUint, const TDesC &)
| void | SavePresetShortcutL | ( | TUint | aUnicode, |
| | const TDesC & | aShortcut |
| | ) | |
Parameters
| TUint aUnicode | The assigned preset text. |
| const TDesC & aShortcut | The shortcut to be save. |
SetCharacterModelL(const TDesC &, RArray< TPoint > &, TInt, TDes &)
Parameters
| const TDesC & aChar | Set model to this character |
| RArray< TPoint > & aModel | Array of points where the character's model is stored. |
| TInt aSubRange | |
| TDes & aSimilarChar | |
SetLanguageScriptL(TInt)
| void | SetLanguageScriptL | ( | TInt | aLanguageScript | ) | |
Set current trained character's Language Script
Parameters
| TInt aLanguageScript | current trained character's Language Script |
SetShortcutModelL(const TDesC &, RArray< TPoint > &, TDes &)
Parameters
| const TDesC & aText | Set model to this Shortcut |
| RArray< TPoint > & aModel | Array of points where the Shortcut's model is stored. |
| TDes & aSimilarText | |
UnLoadUdm(TUdmType)
UnLoad the aType models to memory.
Parameters
| TUdmType aType | Shall set the value of TUdmType |
Member Data Documentation
CHwrRecognizer * iHwrEngine
CSymbolList * iPreSetList
TFixedArray< CSymbolList *, EUdmMax > iSymboList
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.