CTruiPtiEngine Class Reference

class CTruiPtiEngine : public CBase

Inherits from

Public Member Functions
~CTruiPtiEngine()
voidChangeShortcutTextL(const TDesC &, const TDesC &)
TBool CharacterModelExist(const TDesC &)
TBool CheckShortcutModel(const TDesC &)
TInt DeleteCharacterModel(const TDesC &)
TInt DeleteShortcutModel(const TDesC &)
voidGetAllPresetSymbolsL(RArray< TUint > &)
voidGetCharacterModelL(const TDesC &, RArray< TPoint > &)
TInt GetGuidingLinePos(const TSize &, TInt &, TInt &)
voidGetModelIndexListL(TUdmType, RArray< TInt > &, const THwrUdmRange &)
voidGetPresetSymbolByUnicodeL(TUint, RArray< TPoint > &, TDes &)
voidGetShortcutModelL(const TDesC &, RArray< TPoint > &, TUint &)
voidGetShortcutTextListL(RPointerArray< HBufC > &)
voidGetSymbolModelL(TUdmType, TInt, TPtrC &, RArray< TPoint > &, TInt &, TInt &)
voidLoadUdmL(TUdmType)
TInt MaxShortCutLength()
CTruiPtiEngine *NewL(CHwrRecognizer *)
CTruiPtiEngine *NewLC(CHwrRecognizer *)
voidSavePresetShortcutL(TUint, const TDesC &)
voidSetCharacterModelL(const TDesC &, RArray< TPoint > &, TInt, TDes &)
voidSetLanguageScriptL(TInt)
voidSetShortcutModelL(const TDesC &, RArray< TPoint > &, TDes &)
voidUnLoadUdm(TUdmType)
Private Member Functions
CTruiPtiEngine()
voidConstructL(CHwrRecognizer *)
voidConvertUdmRange(THwrUdmRange &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
TInt iBl
RFs iFsSession
TInt iHl
CHwrRecognizer *iHwrEngine
CSymbolList *iPreSetList
TInt iScript
TFixedArray< CSymbolList *, EUdmMax >iSymboList

Constructor & Destructor Documentation

CTruiPtiEngine()

CTruiPtiEngine()[private]

~CTruiPtiEngine()

~CTruiPtiEngine()[virtual]

Destructor.

Member Functions Documentation

ChangeShortcutTextL(const TDesC &, const TDesC &)

voidChangeShortcutTextL(const TDesC &aOldText,
const TDesC &aNewText
)

Change the text of an existing shortcut

Parameters

const TDesC & aOldTextThe text of an existing shortcut
const TDesC & aNewTextThe new text of the shortcut

CharacterModelExist(const TDesC &)

TBool CharacterModelExist(const TDesC &aChar)

Check if character has model

Parameters

const TDesC & aCharThe character which is checked

CheckShortcutModel(const TDesC &)

TBool CheckShortcutModel(const TDesC &aText)

Check if shortcut has model

Parameters

const TDesC & aTextThe shortcut which is checked

ConstructL(CHwrRecognizer *)

voidConstructL(CHwrRecognizer *aHwrEngine)[private]

Parameters

CHwrRecognizer * aHwrEngine

ConvertUdmRange(THwrUdmRange &)

voidConvertUdmRange(THwrUdmRange &aRange)[private]

Change the query strategy.

Parameters

THwrUdmRange & aRangeThe range to change

DeleteCharacterModel(const TDesC &)

TInt DeleteCharacterModel(const TDesC &aChar)

Delete character model

Parameters

const TDesC & aCharDelete this character's model

DeleteShortcutModel(const TDesC &)

TInt DeleteShortcutModel(const TDesC &aText)

Delete Shortcut model

Parameters

const TDesC & aTextDelete this Shortcut's model

GetAllPresetSymbolsL(RArray< TUint > &)

voidGetAllPresetSymbolsL(RArray< TUint > &aPresets)

Return all unicodes of preset text stored in PTI engine

Parameters

RArray< TUint > & aPresetsAll preset text's unicodes are stored in this array.

GetCharacterModelL(const TDesC &, RArray< TPoint > &)

voidGetCharacterModelL(const TDesC &aChar,
RArray< TPoint > &aModel
)

Get character model

Parameters

const TDesC & aCharGet this character's model
RArray< TPoint > & aModelArray of points where the character's model is stored.

GetGuidingLinePos(const TSize &, TInt &, TInt &)

TInt GetGuidingLinePos(const TSize &aSize,
TInt &aTop,
TInt &aBottom
)

Get guiding line pos

Parameters

const TSize & aSize
TInt & aTopThe vertical coordinate of top guiding line
TInt & aBottomThe vertical coordinate of bottom guiding line

GetModelIndexListL(TUdmType, RArray< TInt > &, const THwrUdmRange &)

voidGetModelIndexListL(TUdmTypeaType,
RArray< TInt > &aList,
const THwrUdmRange &aRange
)

Get the indexes of the symbol modles spcified by aRange.

Parameters

TUdmType aTypeShall set the value of TUdmType
RArray< TInt > & aListStore the indexed of the found symbol models.
const THwrUdmRange & aRangeUdm Range

GetPresetSymbolByUnicodeL(TUint, RArray< TPoint > &, TDes &)

voidGetPresetSymbolByUnicodeL(TUintaUnicode,
RArray< TPoint > &aModel,
TDes &aShortcut
)

Get trails assigned to a preset text.

Parameters

TUint aUnicodeThe unicode of the preset text.
RArray< TPoint > & aModelStore trails of the preset text.
TDes & aShortcutIndicate whether the preset text has been assigned to a shortcut text. If KNullDesC, it is not in use.

GetShortcutModelL(const TDesC &, RArray< TPoint > &, TUint &)

voidGetShortcutModelL(const TDesC &aText,
RArray< TPoint > &aModel,
TUint &aUnicode
)

Get Shortcut model

Parameters

const TDesC & aTextGet this Shortcut's model
RArray< TPoint > & aModelArray of points where the Shortcut's model is stored.
TUint & aUnicode

GetShortcutTextListL(RPointerArray< HBufC > &)

voidGetShortcutTextListL(RPointerArray< HBufC > &aShortcutTextList)

Get text list of all the shortcuts

Parameters

RPointerArray< HBufC > & aShortcutTextListThe text list.

GetSymbolModelL(TUdmType, TInt, TPtrC &, RArray< TPoint > &, TInt &, TInt &)

voidGetSymbolModelL(TUdmTypeaType,
TIntaIndex,
TPtrC &aSymbolName,
RArray< TPoint > &aModel,
TInt &aHelpLine,
TInt &aBaseLine
)

Get the model properties of the specified index

Parameters

TUdmType aTypeShall set the value of TUdmType
TInt aIndex
TPtrC & aSymbolName
RArray< TPoint > & aModel
TInt & aHelpLine
TInt & aBaseLine

LoadUdmL(TUdmType)

voidLoadUdmL(TUdmTypeaType)

Load the aType models to memory.

Parameters

TUdmType aTypeShall set the value of TUdmType

MaxShortCutLength()

TInt MaxShortCutLength()

Get the number of the maximum of shortcuts

NewL(CHwrRecognizer *)

CTruiPtiEngine *NewL(CHwrRecognizer *aHwrEngine)[static]

Two phase constructor.

Parameters

CHwrRecognizer * aHwrEngine

NewLC(CHwrRecognizer *)

CTruiPtiEngine *NewLC(CHwrRecognizer *aHwrEngine)[static]

Two phase constructor.

Parameters

CHwrRecognizer * aHwrEngine

SavePresetShortcutL(TUint, const TDesC &)

voidSavePresetShortcutL(TUintaUnicode,
const TDesC &aShortcut
)

Save preset shortcuts.

Parameters

TUint aUnicodeThe assigned preset text.
const TDesC & aShortcutThe shortcut to be save.

SetCharacterModelL(const TDesC &, RArray< TPoint > &, TInt, TDes &)

voidSetCharacterModelL(const TDesC &aChar,
RArray< TPoint > &aModel,
TIntaSubRange,
TDes &aSimilarChar
)

Set character model

Parameters

const TDesC & aCharSet model to this character
RArray< TPoint > & aModelArray of points where the character's model is stored.
TInt aSubRange
TDes & aSimilarChar

SetLanguageScriptL(TInt)

voidSetLanguageScriptL(TIntaLanguageScript)

Set current trained character's Language Script

Parameters

TInt aLanguageScriptcurrent trained character's Language Script

SetShortcutModelL(const TDesC &, RArray< TPoint > &, TDes &)

voidSetShortcutModelL(const TDesC &aText,
RArray< TPoint > &aModel,
TDes &aSimilarText
)

Set Shortcut model

Parameters

const TDesC & aTextSet model to this Shortcut
RArray< TPoint > & aModelArray of points where the Shortcut's model is stored.
TDes & aSimilarText

UnLoadUdm(TUdmType)

voidUnLoadUdm(TUdmTypeaType)

UnLoad the aType models to memory.

Parameters

TUdmType aTypeShall set the value of TUdmType

Member Data Documentation

TInt iBl

TInt iBl[private]

RFs iFsSession

RFs iFsSession[private]

TInt iHl

TInt iHl[private]

CHwrRecognizer * iHwrEngine

CHwrRecognizer *iHwrEngine[private]

CSymbolList * iPreSetList

CSymbolList *iPreSetList[private]

TInt iScript

TInt iScript[private]

TFixedArray< CSymbolList *, EUdmMax > iSymboList

TFixedArray< CSymbolList *, EUdmMax >iSymboList[private]