CTruiPtiEngine Class Reference

class CTruiPtiEngine : public CBase

Inherits from

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 )
Private Member Functions
CTruiPtiEngine ()
void ConstructL ( CHwrRecognizer *)
void ConvertUdmRange ( 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 &)

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 &)

TBool CharacterModelExist ( const TDesC & aChar )

Check if character has model

Parameters

const TDesC & aChar The character which is checked

CheckShortcutModel(const TDesC &)

TBool CheckShortcutModel ( const TDesC & aText )

Check if shortcut has model

Parameters

const TDesC & aText The shortcut which is checked

ConstructL(CHwrRecognizer *)

void ConstructL ( CHwrRecognizer * aHwrEngine ) [private]

Parameters

CHwrRecognizer * aHwrEngine

ConvertUdmRange(THwrUdmRange &)

void ConvertUdmRange ( THwrUdmRange & aRange ) [private]

Change the query strategy.

Parameters

THwrUdmRange & aRange The range to change

DeleteCharacterModel(const TDesC &)

TInt DeleteCharacterModel ( const TDesC & aChar )

Delete character model

Parameters

const TDesC & aChar Delete this character's model

DeleteShortcutModel(const TDesC &)

TInt DeleteShortcutModel ( const TDesC & aText )

Delete Shortcut model

Parameters

const TDesC & aText Delete this Shortcut's model

GetAllPresetSymbolsL(RArray< TUint > &)

void GetAllPresetSymbolsL ( RArray < TUint > & aPresets )

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 > &)

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

Get character model

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 &)

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

Get guiding line pos

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 &)

void GetModelIndexListL ( TUdmType aType,
RArray < TInt > & aList,
const THwrUdmRange & aRange
)

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 &)

void GetPresetSymbolByUnicodeL ( TUint aUnicode,
RArray < TPoint > & aModel,
TDes & aShortcut
)

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 &)

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

Get Shortcut model

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 > &)

void GetShortcutTextListL ( RPointerArray < HBufC > & aShortcutTextList )

Get text list of all the shortcuts

Parameters

RPointerArray < HBufC > & aShortcutTextList The text list.

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

void GetSymbolModelL ( TUdmType aType,
TInt aIndex,
TPtrC & aSymbolName,
RArray < TPoint > & aModel,
TInt & aHelpLine,
TInt & aBaseLine
)

Get the model properties of the specified index

Parameters

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

LoadUdmL(TUdmType)

void LoadUdmL ( TUdmType aType )

Load the aType models to memory.

Parameters

TUdmType aType Shall 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 &)

void SavePresetShortcutL ( TUint aUnicode,
const TDesC & aShortcut
)

Save preset shortcuts.

Parameters

TUint aUnicode The assigned preset text.
const TDesC & aShortcut The shortcut to be save.

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

void SetCharacterModelL ( const TDesC & aChar,
RArray < TPoint > & aModel,
TInt aSubRange,
TDes & aSimilarChar
)

Set character model

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 &)

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

Set Shortcut model

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)

void UnLoadUdm ( TUdmType aType )

UnLoad the aType models to memory.

Parameters

TUdmType aType Shall 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]