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 )
void ClearCurrentWord ()
void CloseCurrentLanguageL ()
TInt CommitCurrentWord ()
MPtiEngineCompositionDataInterface * CompositionData ()
IMPORT_C MPtiCoreInfo * CoreInfo ( TPtiEngineInputMode )
void CreateDefaultUserDictionaryFileL ( 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 )
void EnableToneMarks ( TBool )
const RArray < TPtiNumericKeyBinding > & ExtendedNumericModeKeysForQwertyL ( TInt )
const RArray < TPtiNumericKeyBinding > & ExtendedNumericModeKeysForQwertyL ( TInt , TPtiKeyboardType )
TPtrC FirstCandidate ()
TInt GetAutoSubstitutionEntry ( TInt , TDes &, TDes &)
void GetAvailableLanguagesL ( CArrayFix < TInt > *)
void GetAvailableLanguagesL ( RArray < TInt > &)
TInt GetCandidateListL ( CDesCArray &)
IMPORT_C HBufC * GetCandidatesByInputString (const TDesC &, RPointerArray < HBufC > &, const TBool )
TInt GetChinesePhraseCandidatesL ( CDesCArray &)
void GetHwrAvailableLanguagesL ( RArray < TInt > &)
MPtiHwrRecognizer * GetHwrRecognizerL ( TLanguage )
MPtiHwrRecognizer * GetHwrRecognizerL ( TInt )
MPtiLanguage * GetLanguage ( TInt )
void GetLocalizedLanguageNameL ( TInt , TDes &)
void GetModeNameIndexL ( TPtiChineseVariant , RArray < TInt > &)
TInt GetNextWordCandidateListL ( CDesCArray &)
void GetNumericModeKeysForQwertyL ( TInt , RArray < TPtiNumericKeyBinding > &)
void GetNumericModeKeysForQwertyL ( 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 )
void InitializeL ( TBool )
TPtiEngineInputMode InputMode ()
TBool IsToneMarkValidForSpelling ()
TBool IsValidKey ( TPtiKey )
TPtiKeyboardType KeyboardType ()
void KeyboardTypesSupportedByLanguageL ( TInt , RArray < TPtiKeyboardType > &)
TPtiKey LastEnteredKey ()
RArray < TUid > & ListHwrRecognizerL ( TLanguage )
void MappingDataForKey ( TPtiKey , TDes &, TPtiTextCase )
void MarkAutoCapitalized ()
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 )
void ResetToneMark ()
TBool SelectPhoneticSpelling ( TInt )
TInt SelectedPhoneticSpelling ()
TInt SetAutoSubstitution ( TBool )
void SetCandidatePageLength ( TInt )
void SetCase ( TPtiTextCase )
TInt SetCurrentWord ( TPtrC )
TInt SetExternalKeyMapL ( TPtiEngineInputMode , TPtiKey , TDesC &, TPtiTextCase )
TInt SetInputMode ( TPtiEngineInputMode )
TInt SetKeyboardType ( TPtiKeyboardType )
TInt SetMaxLengthForAutoCompletedCandidates ( TInt )
TInt SetNumberCandidateStatus ( TBool )
void SetObserver ( MPtiObserver *)
TBool SetPredictiveChineseChar (const TDesC &)
TInt SetReordering ( TBool )
TBool SetToneMark ( TInt )
TBool ToneMark ( TText &)
void WriteSecondaryDataFileL ( TUid , TInt , HBufC8 *)
Private Member Functions
CPtiEngineImpl ()
TPtiKeyboardType ActiveKeyboardType ()
TBool AllowCapitalize ( TUint16 )
void Capitalize ( TDes &)
TPtiTextCase CaseForMappedCharacter ( TChar )
void ClearBuffers ()
void ConstructL ( CPtiEngine *)
void ConvertToKeySequence ( TPtrC , TDes8 &)
CPtiCore * Core ()
CPtiCore * CoreForInputMode ( TPtiEngineInputMode )
TInt CountToneMarks ( TPtrC )
CArrayFixFlat < TPtiLangName > * CreateLanguageNamesListLC ()
CPtiCoreLanguage * CreateNumericLanguageL ( CPtiCore *)
void CreateSecondaryDataFileName ( TDes &, TUid , TInt )
void CreateUserDictName ( TDes &, TUid , TInt )
CPtiUserDictionary * DefaultUserDictForCore ( CPtiCore *)
void DetachUserDictionaries ()
CPtiCore * FindCoreByUid ( TInt32 )
TPtiKeyboardType FindFirstAvailableQwertyKeyboardType ( TInt )
void FindLanguageName ( CArrayFixFlat < TPtiLangName > *, TDes &, TInt )
TBool IsChinese ()
TBool IsCore ()
TBool IsCoreForInputMode ( TPtiEngineInputMode )
TBool IsCurrentCoreSupportCaseInfo ()
TBool IsModeChineseQwerty ( TPtiEngineInputMode )
TBool IsToneMarkOrSeparator ( TInt )
void LoadCoresInDefaultDirL ( TBool )
void MakeCaseSequence ( TPtrC )
TBool MapNumericChar ( CPtiMappings *, TPtiNumericKeyBinding &, TPtiKey , TPtiTextCase , TBool , TPtiEngineInputMode )
void NumericModeKeysForQwertyL ( TInt , RArray < TPtiNumericKeyBinding > &, TBool , TPtiKeyboardType )
void OnInputModeChanged ( TPtiEngineInputMode , TPtiEngineInputMode )
TInt ReadUidFromUserDictionaryFileL (const TDesC &)
TPtrC RedirectKeyForChineseQwerty ( TPtiKey , TBool &)
void RefreshLanguageNamesL ()
void RemoveTrailingPunctuations ()
void RemoveTrailingPunctuations12Key ()
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
enum anonymous { 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 ( TInt aEpocLanguageID,
TPtiEngineInputMode aMode
)

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 TUid aCoreUid,
TBool aUseDefaultUserDictionary
)

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,
TInt aId
)

Parameters

MPtiUserDictionaryEntry & aEntry
TInt aId

AllowCapitalize(TUint16)

TBool AllowCapitalize ( TUint16 aChar ) const [private, inline]

Parameters

TUint16 aChar

AppendKeyPress(TPtiKey)

TPtrC AppendKeyPress ( TPtiKey aKey )

Parameters

TPtiKey aKey

AttachDefaultUserDictionaryL(TUid, TInt)

MPtiUserDictionary * AttachDefaultUserDictionaryL ( TUid aCoreUid,
TInt aSymbolClass
)

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

void Capitalize ( TDes & aTextBuffer ) [private]

Parameters

TDes & aTextBuffer

Case()

TPtiTextCase Case ( ) const [inline]

CaseForMappedCharacter(TChar)

TPtiTextCase CaseForMappedCharacter ( TChar aCharacter ) [private]

Parameters

TChar aCharacter

CaseSequence()

TPtrC8 CaseSequence ( ) [inline]

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

TInt CharConversion ( TPtiCharConversion aType,
TAny * aInput,
TInt aInputLength,
TAny * aOutput
)

Parameters

TPtiCharConversion aType
TAny * aInput
TInt aInputLength
TAny * aOutput

CharacterToKey(TUint16)

TPtiKey CharacterToKey ( TUint16 aChar )

Parameters

TUint16 aChar

ClearBuffers()

void ClearBuffers ( ) [private, inline]

ClearCurrentWord()

void ClearCurrentWord ( )

CloseCurrentLanguageL()

void CloseCurrentLanguageL ( )

CommitCurrentWord()

TInt CommitCurrentWord ( )

CompositionData()

MPtiEngineCompositionDataInterface * CompositionData ( )

ConstructL(CPtiEngine *)

void ConstructL ( CPtiEngine * aFrontEnd ) [private]

Parameters

CPtiEngine * aFrontEnd

ConvertToKeySequence(TPtrC, TDes8 &)

void ConvertToKeySequence ( TPtrC aIn,
TDes8 & aOut
) [private]

Parameters

TPtrC aIn
TDes8 & aOut

Core()

CPtiCore * Core ( ) const [private, inline]

CoreForInputMode(TPtiEngineInputMode)

CPtiCore * CoreForInputMode ( TPtiEngineInputMode aMode ) const [private, inline]

Parameters

TPtiEngineInputMode aMode

CoreInfo(TPtiEngineInputMode)

IMPORT_C MPtiCoreInfo * CoreInfo ( TPtiEngineInputMode aMode ) const

Parameters

TPtiEngineInputMode aMode

CountToneMarks(TPtrC)

TInt CountToneMarks ( TPtrC aSpelling ) const [private]

Parameters

TPtrC aSpelling

CreateDefaultUserDictionaryFileL(TUid, TInt)

void CreateDefaultUserDictionaryFileL ( TUid aCoreUid,
TInt aSymbolClass
)

Parameters

TUid aCoreUid
TInt aSymbolClass

CreateLanguageNamesListLC()

CArrayFixFlat < TPtiLangName > * CreateLanguageNamesListLC ( ) [private]

CreateNumericLanguageL(CPtiCore *)

CPtiCoreLanguage * CreateNumericLanguageL ( CPtiCore * aCore ) [private]

Parameters

CPtiCore * aCore

CreateSecondaryDataFileName(TDes &, TUid, TInt)

void CreateSecondaryDataFileName ( TDes & aResult,
TUid aCoreUid,
TInt aIndex
) [private]

Parameters

TDes & aResult
TUid aCoreUid
TInt aIndex

CreateUserDictName(TDes &, TUid, TInt)

void CreateUserDictName ( TDes & aResult,
TUid aCoreUid,
TInt aSymbolClass
) [private]

Parameters

TDes & aResult
TUid aCoreUid
TInt aSymbolClass

CreateUserDictionaryL(TDesC &, CDesCArrayFlat *, TPtiEngineInputMode)

TInt CreateUserDictionaryL ( TDesC & aFileName,
CDesCArrayFlat * aWords,
TPtiEngineInputMode aMode
)

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 ( TPtiEngineInputMode aMode )

Parameters

TPtiEngineInputMode aMode

DeleteAutoSubstitutionEntry(const TDesC &)

TInt DeleteAutoSubstitutionEntry ( const TDesC & aShortcut )

Parameters

const TDesC & aShortcut

DeleteKeyPress()

TPtrC DeleteKeyPress ( )

DetachUserDictionaries()

void DetachUserDictionaries ( ) [private]

DetachUserDictionary(TDesC &)

TInt DetachUserDictionary ( TDesC & aFileName )

Parameters

TDesC & aFileName

DetachUserDictionary(TInt)

TInt DetachUserDictionary ( TInt aId )

Parameters

TInt aId

EnableToneMarks(TBool)

void EnableToneMarks ( TBool aValue )

Parameters

TBool aValue

ExtendedNumericModeKeysForQwertyL(TInt)

const RArray < TPtiNumericKeyBinding > & ExtendedNumericModeKeysForQwertyL ( TInt aLanguage )

Parameters

TInt aLanguage

ExtendedNumericModeKeysForQwertyL(TInt, TPtiKeyboardType)

const RArray < TPtiNumericKeyBinding > & ExtendedNumericModeKeysForQwertyL ( TInt aLanguage,
TPtiKeyboardType aKeyboardType
)

Parameters

TInt aLanguage
TPtiKeyboardType aKeyboardType

FindCoreByUid(TInt32)

CPtiCore * FindCoreByUid ( TInt32 aUid ) [private]

Parameters

TInt32 aUid

FindFirstAvailableQwertyKeyboardType(TInt)

TPtiKeyboardType FindFirstAvailableQwertyKeyboardType ( TInt aLang ) const [private]

Parameters

TInt aLang

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

void FindLanguageName ( CArrayFixFlat < TPtiLangName > * aList,
TDes & aResult,
TInt aLangCode
) [private]

Parameters

CArrayFixFlat < TPtiLangName > * aList
TDes & aResult
TInt aLangCode

FirstCandidate()

TPtrC FirstCandidate ( )

GetAutoSubstitutionEntry(TInt, TDes &, TDes &)

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

Parameters

TInt aIndex
TDes & aShortcut
TDes & aSubstitution

GetAvailableLanguagesL(CArrayFix< TInt > *)

void GetAvailableLanguagesL ( CArrayFix < TInt > * aResult )

Parameters

CArrayFix < TInt > * aResult

GetAvailableLanguagesL(RArray< TInt > &)

void GetAvailableLanguagesL ( 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 TBool aIsPredictive
)

Parameters

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

GetChinesePhraseCandidatesL(CDesCArray &)

TInt GetChinesePhraseCandidatesL ( CDesCArray & aList )

Parameters

CDesCArray & aList

GetHwrAvailableLanguagesL(RArray< TInt > &)

void GetHwrAvailableLanguagesL ( RArray < TInt > & aResult )

Parameters

RArray < TInt > & aResult

GetHwrRecognizerL(TLanguage)

MPtiHwrRecognizer * GetHwrRecognizerL ( TLanguage aLanguage )

Parameters

TLanguage aLanguage

GetHwrRecognizerL(TInt)

MPtiHwrRecognizer * GetHwrRecognizerL ( TInt aImpId )

Parameters

TInt aImpId

GetLanguage(TInt)

MPtiLanguage * GetLanguage ( TInt aCode ) const

Parameters

TInt aCode

GetLocalizedLanguageNameL(TInt, TDes &)

void GetLocalizedLanguageNameL ( TInt aLangCode,
TDes & aResult
)

Parameters

TInt aLangCode
TDes & aResult

GetModeNameIndexL(TPtiChineseVariant, RArray< TInt > &)

void GetModeNameIndexL ( TPtiChineseVariant aVariant,
RArray < TInt > & aResult
)

Parameters

TPtiChineseVariant aVariant
RArray < TInt > & aResult

GetNextWordCandidateListL(CDesCArray &)

TInt GetNextWordCandidateListL ( CDesCArray & aList )

Parameters

CDesCArray & aList

GetNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &)

void GetNumericModeKeysForQwertyL ( TInt aLanguage,
RArray < TPtiNumericKeyBinding > & aResult
)

Parameters

TInt aLanguage
RArray < TPtiNumericKeyBinding > & aResult

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

void GetNumericModeKeysForQwertyL ( TInt aLanguage,
RArray < TPtiNumericKeyBinding > & aResult,
TPtiKeyboardType aKeyboardType
)

Parameters

TInt aLanguage
RArray < TPtiNumericKeyBinding > & aResult
TPtiKeyboardType aKeyboardType

GetPhoneticSpelling(TInt)

TPtrC GetPhoneticSpelling ( TInt aIndex ) const

Parameters

TInt aIndex

GetPhoneticSpellingsL(CDesCArray &)

TInt GetPhoneticSpellingsL ( CDesCArray & aList )

Parameters

CDesCArray & aList

GetSpelling(TUint16, TDes &, TPtiSpelling)

TInt GetSpelling ( TUint16 aInput,
TDes & aOutput,
TPtiSpelling aType
)

Parameters

TUint16 aInput
TDes & aOutput
TPtiSpelling aType

GetUserDictionaryEntry(TInt, MPtiUserDictionaryEntry &)

TInt GetUserDictionaryEntry ( TInt aIndex,
MPtiUserDictionaryEntry & aResult
)

Parameters

TInt aIndex
MPtiUserDictionaryEntry & aResult

HandleCommandL(TPtiEngineCommand, TAny *)

TInt HandleCommandL ( TPtiEngineCommand aCommand,
TAny * aParams
)

Parameters

TPtiEngineCommand aCommand
TAny * aParams

IncrementToneMark(TBool)

TBool IncrementToneMark ( TBool aOverrideInvalid )

Parameters

TBool aOverrideInvalid

InitializeL(TBool)

void InitializeL ( TBool aUseDefaultUserDictionary )

Parameters

TBool aUseDefaultUserDictionary

InputMode()

TPtiEngineInputMode InputMode ( ) const [inline]

IsChinese()

TBool IsChinese ( ) const [private, inline]

IsCore()

TBool IsCore ( ) const [private, inline]

IsCoreForInputMode(TPtiEngineInputMode)

TBool IsCoreForInputMode ( TPtiEngineInputMode aMode ) const [private, inline]

Parameters

TPtiEngineInputMode aMode

IsCurrentCoreSupportCaseInfo()

TBool IsCurrentCoreSupportCaseInfo ( ) [private]

IsModeChineseQwerty(TPtiEngineInputMode)

TBool IsModeChineseQwerty ( TPtiEngineInputMode aMode ) const [private, inline]

Parameters

TPtiEngineInputMode aMode

IsToneMarkOrSeparator(TInt)

TBool IsToneMarkOrSeparator ( TInt aChar ) const [private, inline]

Parameters

TInt aChar

IsToneMarkValidForSpelling()

TBool IsToneMarkValidForSpelling ( ) const

IsValidKey(TPtiKey)

TBool IsValidKey ( TPtiKey aKey ) const

Parameters

TPtiKey aKey

KeyboardType()

TPtiKeyboardType KeyboardType ( ) const

KeyboardTypesSupportedByLanguageL(TInt, RArray< TPtiKeyboardType > &)

void KeyboardTypesSupportedByLanguageL ( TInt aLanguage,
RArray < TPtiKeyboardType > & aResult
)

Parameters

TInt aLanguage
RArray < TPtiKeyboardType > & aResult

LastEnteredKey()

TPtiKey LastEnteredKey ( ) const [inline]

ListHwrRecognizerL(TLanguage)

RArray < TUid > & ListHwrRecognizerL ( TLanguage aLanguage )

Parameters

TLanguage aLanguage

LoadCoresInDefaultDirL(TBool)

void LoadCoresInDefaultDirL ( TBool aUseDefaultUserDictionary ) [private]

Parameters

TBool aUseDefaultUserDictionary

MakeCaseSequence(TPtrC)

void MakeCaseSequence ( TPtrC aWord ) [private]

Parameters

TPtrC aWord

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

TBool MapNumericChar ( CPtiMappings * aMaps,
TPtiNumericKeyBinding & aBinding,
TPtiKey aKey,
TPtiTextCase aCase,
TBool aUseExtendedSet,
TPtiEngineInputMode aMode
) [private]

Parameters

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

MappingDataForKey(TPtiKey, TDes &, TPtiTextCase)

void MappingDataForKey ( TPtiKey aKey,
TDes & aResult,
TPtiTextCase aCase
)

Parameters

TPtiKey aKey
TDes & aResult
TPtiTextCase aCase

MarkAutoCapitalized()

void MarkAutoCapitalized ( )

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)

void NumericModeKeysForQwertyL ( TInt aLanguage,
RArray < TPtiNumericKeyBinding > & aResult,
TBool aUseExtendedSet,
TPtiKeyboardType aKeyboardtype = EPtiKeyboardNone
) [private]

Parameters

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

Observer()

MPtiObserver * Observer ( ) [inline]

OnInputModeChanged(TPtiEngineInputMode, TPtiEngineInputMode)

void OnInputModeChanged ( TPtiEngineInputMode aOldMode,
TPtiEngineInputMode aNewMode
) [private]

Parameters

TPtiEngineInputMode aOldMode
TPtiEngineInputMode aNewMode

PhoneticSpellingCount()

TInt PhoneticSpellingCount ( ) const

PreviousCandidate()

TPtrC PreviousCandidate ( )

PreviousCandidatePage()

TBool PreviousCandidatePage ( )

ReadSecondaryDataFileL(TUid, TInt)

HBufC8 * ReadSecondaryDataFileL ( TUid aCoreUid,
TInt aIndexNumber
)

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 ( TPtiKey aKey,
TBool & aRedirected
) [private]

Parameters

TPtiKey aKey
TBool & aRedirected

RefreshLanguageNamesL()

void RefreshLanguageNamesL ( ) [private]

RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &)

TInt RemoveEntryFromUserDictionary ( MPtiUserDictionaryEntry & aEntry )

Parameters

MPtiUserDictionaryEntry & aEntry

RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &, TInt)

TInt RemoveEntryFromUserDictionary ( MPtiUserDictionaryEntry & aEntry,
TInt aId
)

Parameters

MPtiUserDictionaryEntry & aEntry
TInt aId

RemoveTrailingPunctuations()

void RemoveTrailingPunctuations ( ) [private]

RemoveTrailingPunctuations12Key()

void RemoveTrailingPunctuations12Key ( ) [private]

ResetToneMark()

void ResetToneMark ( )

SelectPhoneticSpelling(TInt)

TBool SelectPhoneticSpelling ( TInt aIndex )

Parameters

TInt aIndex

SelectedPhoneticSpelling()

TInt SelectedPhoneticSpelling ( ) const

SetAutoSubstitution(TBool)

TInt SetAutoSubstitution ( TBool aStatus )

Parameters

TBool aStatus

SetCandidatePageLength(TInt)

void SetCandidatePageLength ( TInt aLength )

Parameters

TInt aLength

SetCase(TPtiTextCase)

void SetCase ( TPtiTextCase aCase ) [inline]

Parameters

TPtiTextCase aCase

SetCurrentWord(TPtrC)

TInt SetCurrentWord ( TPtrC aWord )

Parameters

TPtrC aWord

SetExternalKeyMapL(TPtiEngineInputMode, TPtiKey, TDesC &, TPtiTextCase)

TInt SetExternalKeyMapL ( TPtiEngineInputMode aMode,
TPtiKey aKey,
TDesC & aKeyMap,
TPtiTextCase aCase
)

Parameters

TPtiEngineInputMode aMode
TPtiKey aKey
TDesC & aKeyMap
TPtiTextCase aCase

SetInputMode(TPtiEngineInputMode)

TInt SetInputMode ( TPtiEngineInputMode aMode )

Parameters

TPtiEngineInputMode aMode

SetKeyboardType(TPtiKeyboardType)

TInt SetKeyboardType ( TPtiKeyboardType aType )

Parameters

TPtiKeyboardType aType

SetMaxLengthForAutoCompletedCandidates(TInt)

TInt SetMaxLengthForAutoCompletedCandidates ( TInt aMaxLenght )

Parameters

TInt aMaxLenght

SetNumberCandidateStatus(TBool)

TInt SetNumberCandidateStatus ( TBool aStatus )

Parameters

TBool aStatus

SetObserver(MPtiObserver *)

void SetObserver ( MPtiObserver * aObserver ) [inline]

Parameters

MPtiObserver * aObserver

SetPredictiveChineseChar(const TDesC &)

TBool SetPredictiveChineseChar ( const TDesC & aChar )

Parameters

const TDesC & aChar

SetReordering(TBool)

TInt SetReordering ( TBool aStatus )

Parameters

TBool aStatus

SetToneMark(TInt)

TBool SetToneMark ( TInt aToneMark )

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

void WriteSecondaryDataFileL ( TUid aCoreUid,
TInt aIndexNumber,
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]