MTruiEngine Class Reference

class MTruiEngine

MTruiEngine class. The interface between HWR engine and TrainUI application

Member Functions Documentation

ChangeShortcutTextL(const TDesC &, const TDesC &)

void ChangeShortcutTextL ( const TDesC & aOldText,
const TDesC & aNewText
) [pure virtual]

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 ) [pure virtual]

Check if character has model

Parameters

const TDesC & aChar The character which is checked

CheckShortcutModel(const TDesC &)

TBool CheckShortcutModel ( const TDesC & aText ) [pure virtual]

Check if shortcut has model

Parameters

const TDesC & aText The shortcut which is checked

DeleteCharacterModel(const TDesC &)

TInt DeleteCharacterModel ( const TDesC & aChar ) [pure virtual]

Delete character model

Parameters

const TDesC & aChar Delete this character's model

DeleteShortcutModel(const TDesC &)

TInt DeleteShortcutModel ( const TDesC & aText ) [pure virtual]

Delete Shortcut model

Parameters

const TDesC & aText Delete this Shortcut's model

GetAllPresetSymbolsL(RArray< TUint > &)

void GetAllPresetSymbolsL ( RArray < TUint > & aPresets ) [pure virtual]

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
) [pure virtual]

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
) [pure virtual]

Get guiding line pos

The are

Parameters

const TSize & aSize
TInt & aTop The vertical coordinate of top guiding line
TInt & aBottom The vertical coordinate of bottom guiding line

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

void GetPresetSymbolByUnicodeL ( TUint aUnicode,
RArray < TPoint > & aModel,
TDes & aShortcut
) [pure virtual]

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
) [pure virtual]

Get trails assigned to the specified shortcut.

Parameters

const TDesC & aText The specified shortcut text
RArray < TPoint > & aModel Trails of the shortcut.
TUint & aUnicode The assigned preset text if it is a preset shortcut, otherwise, it is 0;

GetShortcutTextListL(RPointerArray< HBufC > &)

void GetShortcutTextListL ( RPointerArray < HBufC > & aShortcutTextList ) [pure virtual]

Get text list of all the shortcuts

Parameters

RPointerArray < HBufC > & aShortcutTextList The text list.

MaxShortCutLength()

TInt MaxShortCutLength ( ) [pure virtual]

Get the number of the maximum of shortcuts

SavePresetShortcutL(TUint, const TDesC &)

void SavePresetShortcutL ( TUint aUnicode,
const TDesC & aShortcut
) [pure virtual]

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
) [pure virtual]

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. Shall set the value to TPtiHwrRange. if not accepted by engine, store the conflict char
TInt aSubRange
TDes & aSimilarChar

SetLanguageScriptL(TInt)

void SetLanguageScriptL ( TInt aLanguageScript ) [pure virtual]

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
) [pure virtual]

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 Store the conflict text if exist.