CPtiEngineImpl Class Reference

class CPtiEngineImpl : public CBase

CPtiEngineImpl class. Implementation class for main PtiEngine API. See file PtiEngine.h for actual documentation.

Inherits from

Public Member Functions
~CPtiEngineImpl()
TInt ActivateLanguageL(TInt, TPtiEngineInputMode)
TInt AddAutoSubstitutionEntry(const TDesC &, const TDesC &)
TInt AddCoreL(const TUid, TBool)
TInt AddPhrase(const TDesC &)
TInt AddUserDictionaryEntry(MPtiUserDictionaryEntry &)
TInt AddUserDictionaryEntry(MPtiUserDictionaryEntry &, TInt)
TPtrC AppendKeyPress(TPtiKey)
MPtiUserDictionary *AttachDefaultUserDictionaryL(TUid, TInt)
MPtiUserDictionary *AttachUserDictionaryL(TDesC &)
TUint32 AvailableCharConversions()
TInt CancelTimerActivity()
TPtrC CandidatePage()
TPtiTextCase Case()
TPtrC8 CaseSequence()
TInt CharConversion(TPtiCharConversion, TAny *, TInt, TAny *)
TPtiKey CharacterToKey(TUint16)
voidClearCurrentWord()
voidCloseCurrentLanguageL()
TInt CommitCurrentWord()
MPtiEngineCompositionDataInterface *CompositionData()
IMPORT_C MPtiCoreInfo *CoreInfo(TPtiEngineInputMode)
voidCreateDefaultUserDictionaryFileL(TUid, TInt)
TInt CreateUserDictionaryL(TDesC &, CDesCArrayFlat *, TPtiEngineInputMode)
TPtrC8 CurrentInputSequence()
MPtiLanguage *CurrentLanguage()
TPtrC CurrentWord()
MPtiUserDictionary *DefaultUserDictionary(TPtiEngineInputMode)
TInt DeleteAutoSubstitutionEntry(const TDesC &)
TPtrC DeleteKeyPress()
TInt DetachUserDictionary(TDesC &)
TInt DetachUserDictionary(TInt)
voidEnableToneMarks(TBool)
const RArray< TPtiNumericKeyBinding > &ExtendedNumericModeKeysForQwertyL(TInt)
const RArray< TPtiNumericKeyBinding > &ExtendedNumericModeKeysForQwertyL(TInt, TPtiKeyboardType)
TPtrC FirstCandidate()
TInt GetAutoSubstitutionEntry(TInt, TDes &, TDes &)
voidGetAvailableLanguagesL(CArrayFix< TInt > *)
voidGetAvailableLanguagesL(RArray< TInt > &)
TInt GetCandidateListL(CDesCArray &)
IMPORT_C HBufC *GetCandidatesByInputString(const TDesC &, RPointerArray< HBufC > &, const TBool)
TInt GetChinesePhraseCandidatesL(CDesCArray &)
voidGetHwrAvailableLanguagesL(RArray< TInt > &)
MPtiHwrRecognizer *GetHwrRecognizerL(TLanguage)
MPtiHwrRecognizer *GetHwrRecognizerL(TInt)
MPtiLanguage *GetLanguage(TInt)
voidGetLocalizedLanguageNameL(TInt, TDes &)
voidGetModeNameIndexL(TPtiChineseVariant, RArray< TInt > &)
TInt GetNextWordCandidateListL(CDesCArray &)
voidGetNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &)
voidGetNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &, TPtiKeyboardType)
TPtrC GetPhoneticSpelling(TInt)
TInt GetPhoneticSpellingsL(CDesCArray &)
TInt GetSpelling(TUint16, TDes &, TPtiSpelling)
TInt GetUserDictionaryEntry(TInt, MPtiUserDictionaryEntry &)
TInt HandleCommandL(TPtiEngineCommand, TAny *)
TBool IncrementToneMark(TBool)
voidInitializeL(TBool)
TPtiEngineInputMode InputMode()
TBool IsToneMarkValidForSpelling()
TBool IsValidKey(TPtiKey)
TPtiKeyboardType KeyboardType()
voidKeyboardTypesSupportedByLanguageL(TInt, RArray< TPtiKeyboardType > &)
TPtiKey LastEnteredKey()
RArray< TUid > &ListHwrRecognizerL(TLanguage)
voidMappingDataForKey(TPtiKey, TDes &, TPtiTextCase)
voidMarkAutoCapitalized()
TBool MoreCandidatePages()
CPtiEngineImpl *NewL(CPtiEngine *)
TPtrC NextCandidate()
TBool NextCandidatePage()
TInt NumberOfAutoSubstitutionEntries()
TInt NumberOfCandidates()
TInt NumberOfEntriesInUserDictionary()
TInt NumberOfLanguages()
MPtiObserver *Observer()
TInt PhoneticSpellingCount()
TPtrC PreviousCandidate()
TBool PreviousCandidatePage()
HBufC8 *ReadSecondaryDataFileL(TUid, TInt)
TPtrC ReadingTextL()
TInt RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &)
TInt RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &, TInt)
voidResetToneMark()
TBool SelectPhoneticSpelling(TInt)
TInt SelectedPhoneticSpelling()
TInt SetAutoSubstitution(TBool)
voidSetCandidatePageLength(TInt)
voidSetCase(TPtiTextCase)
TInt SetCurrentWord(TPtrC)
TInt SetExternalKeyMapL(TPtiEngineInputMode, TPtiKey, TDesC &, TPtiTextCase)
TInt SetInputMode(TPtiEngineInputMode)
TInt SetKeyboardType(TPtiKeyboardType)
TInt SetMaxLengthForAutoCompletedCandidates(TInt)
TInt SetNumberCandidateStatus(TBool)
voidSetObserver(MPtiObserver *)
TBool SetPredictiveChineseChar(const TDesC &)
TInt SetReordering(TBool)
TBool SetToneMark(TInt)
TBool ToneMark(TText &)
voidWriteSecondaryDataFileL(TUid, TInt, HBufC8 *)
Private Member Functions
CPtiEngineImpl()
TPtiKeyboardType ActiveKeyboardType()
TBool AllowCapitalize(TUint16)
voidCapitalize(TDes &)
TPtiTextCase CaseForMappedCharacter(TChar)
voidClearBuffers()
voidConstructL(CPtiEngine *)
voidConvertToKeySequence(TPtrC, TDes8 &)
CPtiCore *Core()
CPtiCore *CoreForInputMode(TPtiEngineInputMode)
TInt CountToneMarks(TPtrC)
CArrayFixFlat< TPtiLangName > *CreateLanguageNamesListLC()
CPtiCoreLanguage *CreateNumericLanguageL(CPtiCore *)
voidCreateSecondaryDataFileName(TDes &, TUid, TInt)
voidCreateUserDictName(TDes &, TUid, TInt)
CPtiUserDictionary *DefaultUserDictForCore(CPtiCore *)
voidDetachUserDictionaries()
CPtiCore *FindCoreByUid(TInt32)
TPtiKeyboardType FindFirstAvailableQwertyKeyboardType(TInt)
voidFindLanguageName(CArrayFixFlat< TPtiLangName > *, TDes &, TInt)
TBool IsChinese()
TBool IsCore()
TBool IsCoreForInputMode(TPtiEngineInputMode)
TBool IsCurrentCoreSupportCaseInfo()
TBool IsModeChineseQwerty(TPtiEngineInputMode)
TBool IsToneMarkOrSeparator(TInt)
voidLoadCoresInDefaultDirL(TBool)
voidMakeCaseSequence(TPtrC)
TBool MapNumericChar(CPtiMappings *, TPtiNumericKeyBinding &, TPtiKey, TPtiTextCase, TBool, TPtiEngineInputMode)
voidNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &, TBool, TPtiKeyboardType)
voidOnInputModeChanged(TPtiEngineInputMode, TPtiEngineInputMode)
TInt ReadUidFromUserDictionaryFileL(const TDesC &)
TPtrC RedirectKeyForChineseQwerty(TPtiKey, TBool &)
voidRefreshLanguageNamesL()
voidRemoveTrailingPunctuations()
voidRemoveTrailingPunctuations12Key()
TBool SupportsUserDictionaries(CPtiCore *)
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 Member Enumerations
enumanonymous { KPtiMaxWordSize = 255 }
Private Attributes
TBuf< KPtiMaxWordSize >iCandidateBuffer
TPtiTextCase iCase
TBuf8< KPtiMaxWordSize >iCaseBuffer
CArrayPtrFlat< CPtiCore > *iCores
CPtiHwrRecognizer *iCurrentHwrImpl
CPtiCoreLanguage *iCurrentLanguage
RArray< TPtiNumericKeyBinding >iExtendedNumricSet
TInt iExtendedNumricSetLang
CPtiEngine *iFrontEnd
RArray< TUid >iImpIdList
TPtiEngineInputMode iInputMode
TBuf8< KPtiMaxWordSize >iInputSequence
CArrayPtrFlat< CPtiCoreLanguage > *iLanguages
TBool iMaxEditorLengthCrossed
MPtiObserver *iObserver
TBuf< KPtiMaxKeymappingsLength >iPunctuationCharacters
TInt iPunctuationLocation
TInt iPunctuationsEntered
TBuf< KPtiMaxWordSize >iTextBuffer
RPointerArray< CPtiUserDictionary >iUserDictionaries

Constructor & Destructor Documentation

CPtiEngineImpl()

CPtiEngineImpl()[private]

~CPtiEngineImpl()

~CPtiEngineImpl()

Destructor.

Member Functions Documentation

ActivateLanguageL(TInt, TPtiEngineInputMode)

TInt ActivateLanguageL(TIntaEpocLanguageID,
TPtiEngineInputModeaMode
)

Parameters

TInt aEpocLanguageID
TPtiEngineInputMode aMode

ActiveKeyboardType()

TPtiKeyboardType ActiveKeyboardType()const [private]

AddAutoSubstitutionEntry(const TDesC &, const TDesC &)

TInt AddAutoSubstitutionEntry(const TDesC &aShortcut,
const TDesC &aSubstituition
)

Parameters

const TDesC & aShortcut
const TDesC & aSubstituition

AddCoreL(const TUid, TBool)

TInt AddCoreL(const TUidaCoreUid,
TBoolaUseDefaultUserDictionary
)

Parameters

const TUid aCoreUid
TBool aUseDefaultUserDictionary

AddPhrase(const TDesC &)

TInt AddPhrase(const TDesC &aNewPhrase)

Parameters

const TDesC & aNewPhrase

AddUserDictionaryEntry(MPtiUserDictionaryEntry &)

TInt AddUserDictionaryEntry(MPtiUserDictionaryEntry &aEntry)

Parameters

MPtiUserDictionaryEntry & aEntry

AddUserDictionaryEntry(MPtiUserDictionaryEntry &, TInt)

TInt AddUserDictionaryEntry(MPtiUserDictionaryEntry &aEntry,
TIntaId
)

Parameters

MPtiUserDictionaryEntry & aEntry
TInt aId

AllowCapitalize(TUint16)

TBool AllowCapitalize(TUint16aChar)const [private, inline]

Parameters

TUint16 aChar

AppendKeyPress(TPtiKey)

TPtrC AppendKeyPress(TPtiKeyaKey)

Parameters

TPtiKey aKey

AttachDefaultUserDictionaryL(TUid, TInt)

MPtiUserDictionary *AttachDefaultUserDictionaryL(TUidaCoreUid,
TIntaSymbolClass
)

Parameters

TUid aCoreUid
TInt aSymbolClass

AttachUserDictionaryL(TDesC &)

MPtiUserDictionary *AttachUserDictionaryL(TDesC &aFileName)

Parameters

TDesC & aFileName

AvailableCharConversions()

TUint32 AvailableCharConversions()const

CancelTimerActivity()

TInt CancelTimerActivity()

CandidatePage()

TPtrC CandidatePage()

Capitalize(TDes &)

voidCapitalize(TDes &aTextBuffer)[private]

Parameters

TDes & aTextBuffer

Case()

TPtiTextCase Case()const [inline]

CaseForMappedCharacter(TChar)

TPtiTextCase CaseForMappedCharacter(TCharaCharacter)[private]

Parameters

TChar aCharacter

CaseSequence()

TPtrC8 CaseSequence()[inline]

CharConversion(TPtiCharConversion, TAny *, TInt, TAny *)

TInt CharConversion(TPtiCharConversionaType,
TAny *aInput,
TIntaInputLength,
TAny *aOutput
)

Parameters

TPtiCharConversion aType
TAny * aInput
TInt aInputLength
TAny * aOutput

CharacterToKey(TUint16)

TPtiKey CharacterToKey(TUint16aChar)

Parameters

TUint16 aChar

ClearBuffers()

voidClearBuffers()[private, inline]

ClearCurrentWord()

voidClearCurrentWord()

CloseCurrentLanguageL()

voidCloseCurrentLanguageL()

CommitCurrentWord()

TInt CommitCurrentWord()

CompositionData()

MPtiEngineCompositionDataInterface *CompositionData()

ConstructL(CPtiEngine *)

voidConstructL(CPtiEngine *aFrontEnd)[private]

Parameters

CPtiEngine * aFrontEnd

ConvertToKeySequence(TPtrC, TDes8 &)

voidConvertToKeySequence(TPtrCaIn,
TDes8 &aOut
)[private]

Parameters

TPtrC aIn
TDes8 & aOut

Core()

CPtiCore *Core()const [private, inline]

CoreForInputMode(TPtiEngineInputMode)

CPtiCore *CoreForInputMode(TPtiEngineInputModeaMode)const [private, inline]

Parameters

TPtiEngineInputMode aMode

CoreInfo(TPtiEngineInputMode)

IMPORT_C MPtiCoreInfo *CoreInfo(TPtiEngineInputModeaMode)const

Parameters

TPtiEngineInputMode aMode

CountToneMarks(TPtrC)

TInt CountToneMarks(TPtrCaSpelling)const [private]

Parameters

TPtrC aSpelling

CreateDefaultUserDictionaryFileL(TUid, TInt)

voidCreateDefaultUserDictionaryFileL(TUidaCoreUid,
TIntaSymbolClass
)

Parameters

TUid aCoreUid
TInt aSymbolClass

CreateLanguageNamesListLC()

CArrayFixFlat< TPtiLangName > *CreateLanguageNamesListLC()[private]

CreateNumericLanguageL(CPtiCore *)

CPtiCoreLanguage *CreateNumericLanguageL(CPtiCore *aCore)[private]

Parameters

CPtiCore * aCore

CreateSecondaryDataFileName(TDes &, TUid, TInt)

voidCreateSecondaryDataFileName(TDes &aResult,
TUidaCoreUid,
TIntaIndex
)[private]

Parameters

TDes & aResult
TUid aCoreUid
TInt aIndex

CreateUserDictName(TDes &, TUid, TInt)

voidCreateUserDictName(TDes &aResult,
TUidaCoreUid,
TIntaSymbolClass
)[private]

Parameters

TDes & aResult
TUid aCoreUid
TInt aSymbolClass

CreateUserDictionaryL(TDesC &, CDesCArrayFlat *, TPtiEngineInputMode)

TInt CreateUserDictionaryL(TDesC &aFileName,
CDesCArrayFlat *aWords,
TPtiEngineInputModeaMode
)

Parameters

TDesC & aFileName
CDesCArrayFlat * aWords
TPtiEngineInputMode aMode

CurrentInputSequence()

TPtrC8 CurrentInputSequence()const [inline]

CurrentLanguage()

MPtiLanguage *CurrentLanguage()[inline]

CurrentWord()

TPtrC CurrentWord()[inline]

DefaultUserDictForCore(CPtiCore *)

CPtiUserDictionary *DefaultUserDictForCore(CPtiCore *aCore)[private]

Parameters

CPtiCore * aCore

DefaultUserDictionary(TPtiEngineInputMode)

MPtiUserDictionary *DefaultUserDictionary(TPtiEngineInputModeaMode)

Parameters

TPtiEngineInputMode aMode

DeleteAutoSubstitutionEntry(const TDesC &)

TInt DeleteAutoSubstitutionEntry(const TDesC &aShortcut)

Parameters

const TDesC & aShortcut

DeleteKeyPress()

TPtrC DeleteKeyPress()

DetachUserDictionaries()

voidDetachUserDictionaries()[private]

DetachUserDictionary(TDesC &)

TInt DetachUserDictionary(TDesC &aFileName)

Parameters

TDesC & aFileName

DetachUserDictionary(TInt)

TInt DetachUserDictionary(TIntaId)

Parameters

TInt aId

EnableToneMarks(TBool)

voidEnableToneMarks(TBoolaValue)

Parameters

TBool aValue

ExtendedNumericModeKeysForQwertyL(TInt)

const RArray< TPtiNumericKeyBinding > &ExtendedNumericModeKeysForQwertyL(TIntaLanguage)

Parameters

TInt aLanguage

ExtendedNumericModeKeysForQwertyL(TInt, TPtiKeyboardType)

const RArray< TPtiNumericKeyBinding > &ExtendedNumericModeKeysForQwertyL(TIntaLanguage,
TPtiKeyboardTypeaKeyboardType
)

Parameters

TInt aLanguage
TPtiKeyboardType aKeyboardType

FindCoreByUid(TInt32)

CPtiCore *FindCoreByUid(TInt32aUid)[private]

Parameters

TInt32 aUid

FindFirstAvailableQwertyKeyboardType(TInt)

TPtiKeyboardType FindFirstAvailableQwertyKeyboardType(TIntaLang)const [private]

Parameters

TInt aLang

FindLanguageName(CArrayFixFlat< TPtiLangName > *, TDes &, TInt)

voidFindLanguageName(CArrayFixFlat< TPtiLangName > *aList,
TDes &aResult,
TIntaLangCode
)[private]

Parameters

CArrayFixFlat< TPtiLangName > * aList
TDes & aResult
TInt aLangCode

FirstCandidate()

TPtrC FirstCandidate()

GetAutoSubstitutionEntry(TInt, TDes &, TDes &)

TInt GetAutoSubstitutionEntry(TIntaIndex,
TDes &aShortcut,
TDes &aSubstitution
)

Parameters

TInt aIndex
TDes & aShortcut
TDes & aSubstitution

GetAvailableLanguagesL(CArrayFix< TInt > *)

voidGetAvailableLanguagesL(CArrayFix< TInt > *aResult)

Parameters

CArrayFix< TInt > * aResult

GetAvailableLanguagesL(RArray< TInt > &)

voidGetAvailableLanguagesL(RArray< TInt > &aResult)

Parameters

RArray< TInt > & aResult

GetCandidateListL(CDesCArray &)

TInt GetCandidateListL(CDesCArray &aList)

Parameters

CDesCArray & aList

GetCandidatesByInputString(const TDesC &, RPointerArray< HBufC > &, const TBool)

IMPORT_C HBufC *GetCandidatesByInputString(const TDesC &aInputString,
RPointerArray< HBufC > &aList,
const TBoolaIsPredictive
)

Parameters

const TDesC & aInputString
RPointerArray< HBufC > & aList
const TBool aIsPredictive

GetChinesePhraseCandidatesL(CDesCArray &)

TInt GetChinesePhraseCandidatesL(CDesCArray &aList)

Parameters

CDesCArray & aList

GetHwrAvailableLanguagesL(RArray< TInt > &)

voidGetHwrAvailableLanguagesL(RArray< TInt > &aResult)

Parameters

RArray< TInt > & aResult

GetHwrRecognizerL(TLanguage)

MPtiHwrRecognizer *GetHwrRecognizerL(TLanguageaLanguage)

Parameters

TLanguage aLanguage

GetHwrRecognizerL(TInt)

MPtiHwrRecognizer *GetHwrRecognizerL(TIntaImpId)

Parameters

TInt aImpId

GetLanguage(TInt)

MPtiLanguage *GetLanguage(TIntaCode)const

Parameters

TInt aCode

GetLocalizedLanguageNameL(TInt, TDes &)

voidGetLocalizedLanguageNameL(TIntaLangCode,
TDes &aResult
)

Parameters

TInt aLangCode
TDes & aResult

GetModeNameIndexL(TPtiChineseVariant, RArray< TInt > &)

voidGetModeNameIndexL(TPtiChineseVariantaVariant,
RArray< TInt > &aResult
)

Parameters

TPtiChineseVariant aVariant
RArray< TInt > & aResult

GetNextWordCandidateListL(CDesCArray &)

TInt GetNextWordCandidateListL(CDesCArray &aList)

Parameters

CDesCArray & aList

GetNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &)

voidGetNumericModeKeysForQwertyL(TIntaLanguage,
RArray< TPtiNumericKeyBinding > &aResult
)

Parameters

TInt aLanguage
RArray< TPtiNumericKeyBinding > & aResult

GetNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &, TPtiKeyboardType)

voidGetNumericModeKeysForQwertyL(TIntaLanguage,
RArray< TPtiNumericKeyBinding > &aResult,
TPtiKeyboardTypeaKeyboardType
)

Parameters

TInt aLanguage
RArray< TPtiNumericKeyBinding > & aResult
TPtiKeyboardType aKeyboardType

GetPhoneticSpelling(TInt)

TPtrC GetPhoneticSpelling(TIntaIndex)const

Parameters

TInt aIndex

GetPhoneticSpellingsL(CDesCArray &)

TInt GetPhoneticSpellingsL(CDesCArray &aList)

Parameters

CDesCArray & aList

GetSpelling(TUint16, TDes &, TPtiSpelling)

TInt GetSpelling(TUint16aInput,
TDes &aOutput,
TPtiSpellingaType
)

Parameters

TUint16 aInput
TDes & aOutput
TPtiSpelling aType

GetUserDictionaryEntry(TInt, MPtiUserDictionaryEntry &)

TInt GetUserDictionaryEntry(TIntaIndex,
MPtiUserDictionaryEntry &aResult
)

Parameters

TInt aIndex
MPtiUserDictionaryEntry & aResult

HandleCommandL(TPtiEngineCommand, TAny *)

TInt HandleCommandL(TPtiEngineCommandaCommand,
TAny *aParams
)

Parameters

TPtiEngineCommand aCommand
TAny * aParams

IncrementToneMark(TBool)

TBool IncrementToneMark(TBoolaOverrideInvalid)

Parameters

TBool aOverrideInvalid

InitializeL(TBool)

voidInitializeL(TBoolaUseDefaultUserDictionary)

Parameters

TBool aUseDefaultUserDictionary

InputMode()

TPtiEngineInputMode InputMode()const [inline]

IsChinese()

TBool IsChinese()const [private, inline]

IsCore()

TBool IsCore()const [private, inline]

IsCoreForInputMode(TPtiEngineInputMode)

TBool IsCoreForInputMode(TPtiEngineInputModeaMode)const [private, inline]

Parameters

TPtiEngineInputMode aMode

IsCurrentCoreSupportCaseInfo()

TBool IsCurrentCoreSupportCaseInfo()[private]

IsModeChineseQwerty(TPtiEngineInputMode)

TBool IsModeChineseQwerty(TPtiEngineInputModeaMode)const [private, inline]

Parameters

TPtiEngineInputMode aMode

IsToneMarkOrSeparator(TInt)

TBool IsToneMarkOrSeparator(TIntaChar)const [private, inline]

Parameters

TInt aChar

IsToneMarkValidForSpelling()

TBool IsToneMarkValidForSpelling()const

IsValidKey(TPtiKey)

TBool IsValidKey(TPtiKeyaKey)const

Parameters

TPtiKey aKey

KeyboardType()

TPtiKeyboardType KeyboardType()const

KeyboardTypesSupportedByLanguageL(TInt, RArray< TPtiKeyboardType > &)

voidKeyboardTypesSupportedByLanguageL(TIntaLanguage,
RArray< TPtiKeyboardType > &aResult
)

Parameters

TInt aLanguage
RArray< TPtiKeyboardType > & aResult

LastEnteredKey()

TPtiKey LastEnteredKey()const [inline]

ListHwrRecognizerL(TLanguage)

RArray< TUid > &ListHwrRecognizerL(TLanguageaLanguage)

Parameters

TLanguage aLanguage

LoadCoresInDefaultDirL(TBool)

voidLoadCoresInDefaultDirL(TBoolaUseDefaultUserDictionary)[private]

Parameters

TBool aUseDefaultUserDictionary

MakeCaseSequence(TPtrC)

voidMakeCaseSequence(TPtrCaWord)[private]

Parameters

TPtrC aWord

MapNumericChar(CPtiMappings *, TPtiNumericKeyBinding &, TPtiKey, TPtiTextCase, TBool, TPtiEngineInputMode)

TBool MapNumericChar(CPtiMappings *aMaps,
TPtiNumericKeyBinding &aBinding,
TPtiKeyaKey,
TPtiTextCaseaCase,
TBoolaUseExtendedSet,
TPtiEngineInputModeaMode
)[private]

Parameters

CPtiMappings * aMaps
TPtiNumericKeyBinding & aBinding
TPtiKey aKey
TPtiTextCase aCase
TBool aUseExtendedSet
TPtiEngineInputMode aMode

MappingDataForKey(TPtiKey, TDes &, TPtiTextCase)

voidMappingDataForKey(TPtiKeyaKey,
TDes &aResult,
TPtiTextCaseaCase
)

Parameters

TPtiKey aKey
TDes & aResult
TPtiTextCase aCase

MarkAutoCapitalized()

voidMarkAutoCapitalized()

MoreCandidatePages()

TBool MoreCandidatePages()

NewL(CPtiEngine *)

CPtiEngineImpl *NewL(CPtiEngine *aFrontEnd)[static]

Two phase constructor.

Parameters

CPtiEngine * aFrontEnd

NextCandidate()

TPtrC NextCandidate()

NextCandidatePage()

TBool NextCandidatePage()

NumberOfAutoSubstitutionEntries()

TInt NumberOfAutoSubstitutionEntries()const

NumberOfCandidates()

TInt NumberOfCandidates()

NumberOfEntriesInUserDictionary()

TInt NumberOfEntriesInUserDictionary()

NumberOfLanguages()

TInt NumberOfLanguages()const [inline]

NumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &, TBool, TPtiKeyboardType)

voidNumericModeKeysForQwertyL(TIntaLanguage,
RArray< TPtiNumericKeyBinding > &aResult,
TBoolaUseExtendedSet,
TPtiKeyboardTypeaKeyboardtype = EPtiKeyboardNone
)[private]

Parameters

TInt aLanguage
RArray< TPtiNumericKeyBinding > & aResult
TBool aUseExtendedSet
TPtiKeyboardType aKeyboardtype = EPtiKeyboardNone

Observer()

MPtiObserver *Observer()[inline]

OnInputModeChanged(TPtiEngineInputMode, TPtiEngineInputMode)

voidOnInputModeChanged(TPtiEngineInputModeaOldMode,
TPtiEngineInputModeaNewMode
)[private]

Parameters

TPtiEngineInputMode aOldMode
TPtiEngineInputMode aNewMode

PhoneticSpellingCount()

TInt PhoneticSpellingCount()const

PreviousCandidate()

TPtrC PreviousCandidate()

PreviousCandidatePage()

TBool PreviousCandidatePage()

ReadSecondaryDataFileL(TUid, TInt)

HBufC8 *ReadSecondaryDataFileL(TUidaCoreUid,
TIntaIndexNumber
)

Parameters

TUid aCoreUid
TInt aIndexNumber

ReadUidFromUserDictionaryFileL(const TDesC &)

TInt ReadUidFromUserDictionaryFileL(const TDesC &aFileName)[private]

Parameters

const TDesC & aFileName

ReadingTextL()

TPtrC ReadingTextL()

RedirectKeyForChineseQwerty(TPtiKey, TBool &)

TPtrC RedirectKeyForChineseQwerty(TPtiKeyaKey,
TBool &aRedirected
)[private]

Parameters

TPtiKey aKey
TBool & aRedirected

RefreshLanguageNamesL()

voidRefreshLanguageNamesL()[private]

RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &)

TInt RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &aEntry)

Parameters

MPtiUserDictionaryEntry & aEntry

RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &, TInt)

TInt RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &aEntry,
TIntaId
)

Parameters

MPtiUserDictionaryEntry & aEntry
TInt aId

RemoveTrailingPunctuations()

voidRemoveTrailingPunctuations()[private]

RemoveTrailingPunctuations12Key()

voidRemoveTrailingPunctuations12Key()[private]

ResetToneMark()

voidResetToneMark()

SelectPhoneticSpelling(TInt)

TBool SelectPhoneticSpelling(TIntaIndex)

Parameters

TInt aIndex

SelectedPhoneticSpelling()

TInt SelectedPhoneticSpelling()const

SetAutoSubstitution(TBool)

TInt SetAutoSubstitution(TBoolaStatus)

Parameters

TBool aStatus

SetCandidatePageLength(TInt)

voidSetCandidatePageLength(TIntaLength)

Parameters

TInt aLength

SetCase(TPtiTextCase)

voidSetCase(TPtiTextCaseaCase)[inline]

Parameters

TPtiTextCase aCase

SetCurrentWord(TPtrC)

TInt SetCurrentWord(TPtrCaWord)

Parameters

TPtrC aWord

SetExternalKeyMapL(TPtiEngineInputMode, TPtiKey, TDesC &, TPtiTextCase)

TInt SetExternalKeyMapL(TPtiEngineInputModeaMode,
TPtiKeyaKey,
TDesC &aKeyMap,
TPtiTextCaseaCase
)

Parameters

TPtiEngineInputMode aMode
TPtiKey aKey
TDesC & aKeyMap
TPtiTextCase aCase

SetInputMode(TPtiEngineInputMode)

TInt SetInputMode(TPtiEngineInputModeaMode)

Parameters

TPtiEngineInputMode aMode

SetKeyboardType(TPtiKeyboardType)

TInt SetKeyboardType(TPtiKeyboardTypeaType)

Parameters

TPtiKeyboardType aType

SetMaxLengthForAutoCompletedCandidates(TInt)

TInt SetMaxLengthForAutoCompletedCandidates(TIntaMaxLenght)

Parameters

TInt aMaxLenght

SetNumberCandidateStatus(TBool)

TInt SetNumberCandidateStatus(TBoolaStatus)

Parameters

TBool aStatus

SetObserver(MPtiObserver *)

voidSetObserver(MPtiObserver *aObserver)[inline]

Parameters

MPtiObserver * aObserver

SetPredictiveChineseChar(const TDesC &)

TBool SetPredictiveChineseChar(const TDesC &aChar)

Parameters

const TDesC & aChar

SetReordering(TBool)

TInt SetReordering(TBoolaStatus)

Parameters

TBool aStatus

SetToneMark(TInt)

TBool SetToneMark(TIntaToneMark)

Parameters

TInt aToneMark

SupportsUserDictionaries(CPtiCore *)

TBool SupportsUserDictionaries(CPtiCore *aCore)[private, inline]

Parameters

CPtiCore * aCore

ToneMark(TText &)

TBool ToneMark(TText &aToneMark)const

Parameters

TText & aToneMark

WriteSecondaryDataFileL(TUid, TInt, HBufC8 *)

voidWriteSecondaryDataFileL(TUidaCoreUid,
TIntaIndexNumber,
HBufC8 *aData
)

Parameters

TUid aCoreUid
TInt aIndexNumber
HBufC8 * aData

Member Enumerations Documentation

Enum anonymous

Enumerators

KPtiMaxWordSize = 255

Member Data Documentation

TBuf< KPtiMaxWordSize > iCandidateBuffer

TBuf< KPtiMaxWordSize >iCandidateBuffer[private]

TPtiTextCase iCase

TPtiTextCase iCase[private]

TBuf8< KPtiMaxWordSize > iCaseBuffer

TBuf8< KPtiMaxWordSize >iCaseBuffer[private]

CArrayPtrFlat< CPtiCore > * iCores

CArrayPtrFlat< CPtiCore > *iCores[private]

CPtiHwrRecognizer * iCurrentHwrImpl

CPtiHwrRecognizer *iCurrentHwrImpl[private]

The pointer points current active hwr implementation

CPtiCoreLanguage * iCurrentLanguage

CPtiCoreLanguage *iCurrentLanguage[private]

RArray< TPtiNumericKeyBinding > iExtendedNumricSet

RArray< TPtiNumericKeyBinding >iExtendedNumricSet[private]

TInt iExtendedNumricSetLang

TInt iExtendedNumricSetLang[private]

CPtiEngine * iFrontEnd

CPtiEngine *iFrontEnd[private]

RArray< TUid > iImpIdList

RArray< TUid >iImpIdList[private]

The array used to store hwr implementation uid list

TPtiEngineInputMode iInputMode

TPtiEngineInputMode iInputMode[private]

TBuf8< KPtiMaxWordSize > iInputSequence

TBuf8< KPtiMaxWordSize >iInputSequence[private]

CArrayPtrFlat< CPtiCoreLanguage > * iLanguages

CArrayPtrFlat< CPtiCoreLanguage > *iLanguages[private]

TBool iMaxEditorLengthCrossed

TBool iMaxEditorLengthCrossed[private]

MPtiObserver * iObserver

MPtiObserver *iObserver[private]

TBuf< KPtiMaxKeymappingsLength > iPunctuationCharacters

TBuf< KPtiMaxKeymappingsLength >iPunctuationCharacters[private]

TInt iPunctuationLocation

TInt iPunctuationLocation[private]

TInt iPunctuationsEntered

TInt iPunctuationsEntered[private]

TBuf< KPtiMaxWordSize > iTextBuffer

TBuf< KPtiMaxWordSize >iTextBuffer[private]

RPointerArray< CPtiUserDictionary > iUserDictionaries

RPointerArray< CPtiUserDictionary >iUserDictionaries[private]