CSymbolList Class Reference

class CSymbolList : public CBase

Inherits from

Constructor & Destructor Documentation

CSymbolList(CSymbolList *)

CSymbolList(CSymbolList *aPresetList)[private]

C++ default constructor

Parameters

CSymbolList * aPresetList

~CSymbolList()

~CSymbolList()[virtual]

Destructor

Member Functions Documentation

ChangeSymbolTextL(const TDesC &, const TDesC &, const THwrUdmRange &)

voidChangeSymbolTextL(const TDesC &aOldText,
const TDesC &aNewText,
const THwrUdmRange &aRange
)

Change the text of an existing symbol model

Parameters

const TDesC & aOldTextThe text of an existing symbol model
const TDesC & aNewTextThe new text of the symbol model
const THwrUdmRange & aRangeThe range this symbol belongs to

CheckSymbolModel(const TDesC &, const THwrUdmRange &)

TBool CheckSymbolModel(const TDesC &aChar,
const THwrUdmRange &aRange
)

Check if symbol exist.

Parameters

const TDesC & aChar
const THwrUdmRange & aRangeThe range this symbol belongs to

ConstructL(const TDesC &)

voidConstructL(const TDesC &aFilePath)[private]

Symbian 2nd phase constructor.

Parameters

const TDesC & aFilePathThe file which contain the symbol model

DeleteSymbolModelL(const TDesC &, const THwrUdmRange &)

voidDeleteSymbolModelL(const TDesC &aChar,
const THwrUdmRange &aRange
)

Delete symbol model

Parameters

const TDesC & aChar
const THwrUdmRange & aRangeThe range this symbol belongs to

ExternalizeL()

voidExternalizeL()

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.

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

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

Get the index array that matched the aRange

Parameters

RArray< TInt > & aListThe index array of the matched symbols.
const THwrUdmRange & aRangeThe range this symbol belongs to

GetModelTextListL(RPointerArray< HBufC > &, const THwrUdmRange &)

voidGetModelTextListL(RPointerArray< HBufC > &aList,
const THwrUdmRange &aRange
)

Get text list of all the symbol models

Parameters

RPointerArray< HBufC > & aListThe text list.
const THwrUdmRange & aRangeThe range this symbol belongs to

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.

GetSymbolDataRef(TInt, TPtrC &, RArray< TPoint > &, TInt &, TInt &)

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

Get the symbol contents for the specified index

Parameters

TInt aIndexThe index array of the matched symbols.
TPtrC & aSymbolNameThe name of the symbol
RArray< TPoint > & aModelThe stroke for the symbol
TInt & aHelpLine
TInt & aBaseLine

GetSymbolIndex(const TDesC &, TInt &, const THwrUdmRange &)

TInt GetSymbolIndex(const TDesC &aText,
TInt &aIndex,
const THwrUdmRange &aRange
)[private]

Get the index for the specified aText & aRange.

Parameters

const TDesC & aTextThe text of a symbol model
TInt & aIndexTo store the index of the symbol model
const THwrUdmRange & aRangeThe range this symbol belongs to

GetSymbolModelL(const TDesC &, RArray< TPoint > &, TUint &, const THwrUdmRange &)

voidGetSymbolModelL(const TDesC &aChar,
RArray< TPoint > &aModel,
TUint &aUnicode,
const THwrUdmRange &aRange
)

Get symbol model

Parameters

const TDesC & aChar
RArray< TPoint > & aModelArray of points where the symbol's model is stored.
TUint & aUnicode
const THwrUdmRange & aRangeThe range this symbol belongs to

InternalizeL(const TDesC &)

voidInternalizeL(const TDesC &aFile)[private]

Parameters

const TDesC & aFile

NewL(const TDesC &, CSymbolList *)

CSymbolList *NewL(const TDesC &aFilePath,
CSymbolList *aPresetList
)[static]

Parameters

const TDesC & aFilePath
CSymbolList * aPresetList

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.

SetSymbolModelL(const TDesC &, const RArray< TPoint > &, TInt, TInt, const THwrUdmRange &)

voidSetSymbolModelL(const TDesC &aText,
const RArray< TPoint > &aModel,
TIntaHelpLine,
TIntaBaseLine,
const THwrUdmRange &aRange
)

Set character model

Parameters

const TDesC & aTextSet text for this symbol
const RArray< TPoint > & aModelArray of points where the character's model is stored.
TInt aHelpLine
TInt aBaseLine
const THwrUdmRange & aRange

SignalMutex(TAny *)

voidSignalMutex(TAny *aMutex)[private, static]

Call RMutex.Signal() in cleanupstack.

Parameters

TAny * aMutex

Member Data Documentation

HBufC * iFilePath

HBufC *iFilePath[private]

RMutex iMutex

RMutex iMutex[private]

CSymbolList * iPresetModels

CSymbolList *iPresetModels[private]

RFs iRfs

RFs iRfs[private]

RPointerArray< CSymbol > iSymbolList

RPointerArray< CSymbol >iSymbolList[private]