CSymbolList Class Reference

class CSymbolList : public CBase

Inherits from

Public Member Functions
~CSymbolList ()
void ChangeSymbolTextL (const TDesC &, const TDesC &, const THwrUdmRange &)
TBool CheckSymbolModel (const TDesC &, const THwrUdmRange &)
void DeleteSymbolModelL (const TDesC &, const THwrUdmRange &)
void ExternalizeL ()
void GetAllPresetSymbolsL ( RArray < TUint > &)
void GetModelIndexListL ( RArray < TInt > &, const THwrUdmRange &)
void GetModelTextListL ( RPointerArray < HBufC > &, const THwrUdmRange &)
void GetPresetSymbolByUnicodeL ( TUint , RArray < TPoint > &, TDes &)
TInt GetSymbolDataRef ( TInt , TPtrC &, RArray < TPoint > &, TInt &, TInt &)
void GetSymbolModelL (const TDesC &, RArray < TPoint > &, TUint &, const THwrUdmRange &)
CSymbolList * NewL (const TDesC &, CSymbolList *)
void SavePresetShortcutL ( TUint , const TDesC &)
void SetSymbolModelL (const TDesC &, const RArray < TPoint > &, TInt , TInt , const THwrUdmRange &)
Private Member Functions
CSymbolList ( CSymbolList *)
void ConstructL (const TDesC &)
TInt GetSymbolIndex (const TDesC &, TInt &, const THwrUdmRange &)
void InternalizeL (const TDesC &)
void SignalMutex ( TAny *)
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
HBufC * iFilePath
RMutex iMutex
CSymbolList * iPresetModels
RFs iRfs
RPointerArray < CSymbol > iSymbolList

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

void ChangeSymbolTextL ( const TDesC & aOldText,
const TDesC & aNewText,
const THwrUdmRange & aRange
)

Change the text of an existing symbol model

Parameters

const TDesC & aOldText The text of an existing symbol model
const TDesC & aNewText The new text of the symbol model
const THwrUdmRange & aRange The 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 & aRange The range this symbol belongs to

ConstructL(const TDesC &)

void ConstructL ( const TDesC & aFilePath ) [private]

Symbian 2nd phase constructor.

Parameters

const TDesC & aFilePath The file which contain the symbol model

DeleteSymbolModelL(const TDesC &, const THwrUdmRange &)

void DeleteSymbolModelL ( const TDesC & aChar,
const THwrUdmRange & aRange
)

Delete symbol model

Parameters

const TDesC & aChar
const THwrUdmRange & aRange The range this symbol belongs to

ExternalizeL()

void ExternalizeL ( )

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.

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

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

Get the index array that matched the aRange

Parameters

RArray < TInt > & aList The index array of the matched symbols.
const THwrUdmRange & aRange The range this symbol belongs to

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

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

Get text list of all the symbol models

Parameters

RPointerArray < HBufC > & aList The text list.
const THwrUdmRange & aRange The range this symbol belongs to

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.

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

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

Get the symbol contents for the specified index

Parameters

TInt aIndex The index array of the matched symbols.
TPtrC & aSymbolName The name of the symbol
RArray < TPoint > & aModel The 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 & aText The text of a symbol model
TInt & aIndex To store the index of the symbol model
const THwrUdmRange & aRange The range this symbol belongs to

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

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

Get symbol model

Parameters

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

InternalizeL(const TDesC &)

void InternalizeL ( 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 &)

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.

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

void SetSymbolModelL ( const TDesC & aText,
const RArray < TPoint > & aModel,
TInt aHelpLine,
TInt aBaseLine,
const THwrUdmRange & aRange
)

Set character model

Parameters

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

SignalMutex(TAny *)

void SignalMutex ( 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]