CPtiEngineImpl Class Reference
class CPtiEngineImpl : public CBase |
CPtiEngineImpl class. Implementation class for main PtiEngine API. See file PtiEngine.h for actual documentation.
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 *) |
Constructor & Destructor Documentation
CPtiEngineImpl()
CPtiEngineImpl | ( | ) | [private] |
Member Functions Documentation
ActivateLanguageL(TInt, TPtiEngineInputMode)
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 | |
AddUserDictionaryEntry(MPtiUserDictionaryEntry &)
AddUserDictionaryEntry(MPtiUserDictionaryEntry &, TInt)
AttachDefaultUserDictionaryL(TUid, TInt)
AttachUserDictionaryL(TDesC &)
AvailableCharConversions()
TUint32
| AvailableCharConversions | ( | ) | const |
CancelTimerActivity()
TInt
| CancelTimerActivity | ( | ) | |
Capitalize(TDes &)
void | Capitalize | ( | TDes & | aTextBuffer | ) | [private] |
CaseForMappedCharacter(TChar)
CharConversion(TPtiCharConversion, TAny *, TInt, TAny *)
ClearBuffers()
void | ClearBuffers | ( | ) | [private, inline] |
CloseCurrentLanguageL()
void | CloseCurrentLanguageL | ( | ) | |
CompositionData()
MPtiEngineCompositionDataInterface * | CompositionData | ( | ) | |
ConvertToKeySequence(TPtrC, TDes8 &)
void | ConvertToKeySequence | ( | TPtrC | aIn, |
| TDes8 & | aOut |
| ) | [private] |
CoreForInputMode(TPtiEngineInputMode)
CoreInfo(TPtiEngineInputMode)
CountToneMarks(TPtrC)
TInt
| CountToneMarks | ( | TPtrC | aSpelling | ) | const [private] |
CreateDefaultUserDictionaryFileL(TUid, TInt)
void | CreateDefaultUserDictionaryFileL | ( | TUid | aCoreUid, |
| TInt | aSymbolClass |
| ) | |
CreateLanguageNamesListLC()
CreateNumericLanguageL(CPtiCore *)
CreateSecondaryDataFileName(TDes &, TUid, TInt)
void | CreateSecondaryDataFileName | ( | TDes & | aResult, |
| TUid | aCoreUid, |
| TInt | aIndex |
| ) | [private] |
CreateUserDictName(TDes &, TUid, TInt)
void | CreateUserDictName | ( | TDes & | aResult, |
| TUid | aCoreUid, |
| TInt | aSymbolClass |
| ) | [private] |
CreateUserDictionaryL(TDesC &, CDesCArrayFlat *, TPtiEngineInputMode)
CurrentInputSequence()
TPtrC8
| CurrentInputSequence | ( | ) | const [inline] |
CurrentWord()
TPtrC
| CurrentWord | ( | ) | [inline] |
DefaultUserDictForCore(CPtiCore *)
DefaultUserDictionary(TPtiEngineInputMode)
DeleteAutoSubstitutionEntry(const TDesC &)
TInt
| DeleteAutoSubstitutionEntry | ( | const TDesC & | aShortcut | ) | |
DetachUserDictionaries()
void | DetachUserDictionaries | ( | ) | [private] |
DetachUserDictionary(TDesC &)
DetachUserDictionary(TInt)
EnableToneMarks(TBool)
void | EnableToneMarks | ( | TBool | aValue | ) | |
ExtendedNumericModeKeysForQwertyL(TInt)
ExtendedNumericModeKeysForQwertyL(TInt, TPtiKeyboardType)
FindFirstAvailableQwertyKeyboardType(TInt)
FindLanguageName(CArrayFixFlat< TPtiLangName > *, TDes &, TInt)
GetAutoSubstitutionEntry(TInt, TDes &, TDes &)
TInt
| GetAutoSubstitutionEntry | ( | TInt | aIndex, |
| TDes & | aShortcut, |
| TDes & | aSubstitution |
| ) | |
GetAvailableLanguagesL(CArrayFix< TInt > *)
GetAvailableLanguagesL(RArray< TInt > &)
void | GetAvailableLanguagesL | ( | RArray< TInt > & | aResult | ) | |
GetCandidateListL(CDesCArray &)
GetCandidatesByInputString(const TDesC &, RPointerArray< HBufC > &, const TBool)
GetChinesePhraseCandidatesL(CDesCArray &)
GetHwrAvailableLanguagesL(RArray< TInt > &)
void | GetHwrAvailableLanguagesL | ( | RArray< TInt > & | aResult | ) | |
GetHwrRecognizerL(TLanguage)
GetLocalizedLanguageNameL(TInt, TDes &)
void | GetLocalizedLanguageNameL | ( | TInt | aLangCode, |
| TDes & | aResult |
| ) | |
GetModeNameIndexL(TPtiChineseVariant, RArray< TInt > &)
GetNextWordCandidateListL(CDesCArray &)
GetNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &)
GetNumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &, TPtiKeyboardType)
GetPhoneticSpelling(TInt)
GetPhoneticSpellingsL(CDesCArray &)
GetSpelling(TUint16, TDes &, TPtiSpelling)
GetUserDictionaryEntry(TInt, MPtiUserDictionaryEntry &)
HandleCommandL(TPtiEngineCommand, TAny *)
InitializeL(TBool)
void | InitializeL | ( | TBool | aUseDefaultUserDictionary | ) | |
Parameters
TBool aUseDefaultUserDictionary | |
IsChinese()
TBool
| IsChinese | ( | ) | const [private, inline] |
IsCore()
TBool
| IsCore | ( | ) | const [private, inline] |
IsCoreForInputMode(TPtiEngineInputMode)
IsCurrentCoreSupportCaseInfo()
TBool
| IsCurrentCoreSupportCaseInfo | ( | ) | [private] |
IsModeChineseQwerty(TPtiEngineInputMode)
IsToneMarkOrSeparator(TInt)
TBool
| IsToneMarkOrSeparator | ( | TInt | aChar | ) | const [private, inline] |
IsToneMarkValidForSpelling()
TBool
| IsToneMarkValidForSpelling | ( | ) | const |
KeyboardTypesSupportedByLanguageL(TInt, RArray< TPtiKeyboardType > &)
LastEnteredKey()
TPtiKey
| LastEnteredKey | ( | ) | const [inline] |
ListHwrRecognizerL(TLanguage)
LoadCoresInDefaultDirL(TBool)
void | LoadCoresInDefaultDirL | ( | TBool | aUseDefaultUserDictionary | ) | [private] |
Parameters
TBool aUseDefaultUserDictionary | |
MakeCaseSequence(TPtrC)
void | MakeCaseSequence | ( | TPtrC | aWord | ) | [private] |
MapNumericChar(CPtiMappings *, TPtiNumericKeyBinding &, TPtiKey, TPtiTextCase, TBool, TPtiEngineInputMode)
MappingDataForKey(TPtiKey, TDes &, TPtiTextCase)
MarkAutoCapitalized()
void | MarkAutoCapitalized | ( | ) | |
MoreCandidatePages()
TBool
| MoreCandidatePages | ( | ) | |
NextCandidatePage()
TBool
| NextCandidatePage | ( | ) | |
NumberOfAutoSubstitutionEntries()
TInt
| NumberOfAutoSubstitutionEntries | ( | ) | const |
NumberOfCandidates()
TInt
| NumberOfCandidates | ( | ) | |
NumberOfEntriesInUserDictionary()
TInt
| NumberOfEntriesInUserDictionary | ( | ) | |
NumberOfLanguages()
TInt
| NumberOfLanguages | ( | ) | const [inline] |
NumericModeKeysForQwertyL(TInt, RArray< TPtiNumericKeyBinding > &, TBool, TPtiKeyboardType)
OnInputModeChanged(TPtiEngineInputMode, TPtiEngineInputMode)
PhoneticSpellingCount()
TInt
| PhoneticSpellingCount | ( | ) | const |
PreviousCandidate()
TPtrC
| PreviousCandidate | ( | ) | |
PreviousCandidatePage()
TBool
| PreviousCandidatePage | ( | ) | |
ReadSecondaryDataFileL(TUid, TInt)
ReadUidFromUserDictionaryFileL(const TDesC &)
TInt
| ReadUidFromUserDictionaryFileL | ( | const TDesC & | aFileName | ) | [private] |
RedirectKeyForChineseQwerty(TPtiKey, TBool &)
RefreshLanguageNamesL()
void | RefreshLanguageNamesL | ( | ) | [private] |
RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &)
RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry &, TInt)
RemoveTrailingPunctuations()
void | RemoveTrailingPunctuations | ( | ) | [private] |
RemoveTrailingPunctuations12Key()
void | RemoveTrailingPunctuations12Key | ( | ) | [private] |
SelectPhoneticSpelling(TInt)
SelectedPhoneticSpelling()
TInt
| SelectedPhoneticSpelling | ( | ) | const |
SetAutoSubstitution(TBool)
SetCandidatePageLength(TInt)
void | SetCandidatePageLength | ( | TInt | aLength | ) | |
SetExternalKeyMapL(TPtiEngineInputMode, TPtiKey, TDesC &, TPtiTextCase)
SetInputMode(TPtiEngineInputMode)
SetKeyboardType(TPtiKeyboardType)
SetMaxLengthForAutoCompletedCandidates(TInt)
TInt
| SetMaxLengthForAutoCompletedCandidates | ( | TInt | aMaxLenght | ) | |
SetNumberCandidateStatus(TBool)
SetObserver(MPtiObserver *)
SetPredictiveChineseChar(const TDesC &)
TBool
| SetPredictiveChineseChar | ( | const TDesC & | aChar | ) | |
SupportsUserDictionaries(CPtiCore *)
WriteSecondaryDataFileL(TUid, TInt, HBufC8 *)
void | WriteSecondaryDataFileL | ( | TUid | aCoreUid, |
| TInt | aIndexNumber, |
| HBufC8 * | aData |
| ) | |
Member Enumerations Documentation
Member Data Documentation
TBuf< KPtiMaxWordSize > iCandidateBuffer
TBuf< KPtiMaxWordSize > | iCandidateBuffer | [private] |
TBuf8< KPtiMaxWordSize > iCaseBuffer
TBuf8< KPtiMaxWordSize > | iCaseBuffer | [private] |
CArrayPtrFlat< CPtiCore > * iCores
CPtiHwrRecognizer * iCurrentHwrImpl
The pointer points current active hwr implementation
CPtiCoreLanguage * iCurrentLanguage
RArray< TPtiNumericKeyBinding > iExtendedNumricSet
TInt
iExtendedNumricSetLang
TInt
| iExtendedNumricSetLang | [private] |
RArray< TUid > iImpIdList
The array used to store hwr implementation uid list
TPtiEngineInputMode
iInputMode
TBuf8< KPtiMaxWordSize > iInputSequence
TBuf8< KPtiMaxWordSize > | iInputSequence | [private] |
CArrayPtrFlat< CPtiCoreLanguage > * iLanguages
TBool
iMaxEditorLengthCrossed
TBool
| iMaxEditorLengthCrossed | [private] |
TBuf< KPtiMaxKeymappingsLength > iPunctuationCharacters
TInt
iPunctuationLocation
TInt
| iPunctuationLocation | [private] |
TInt
iPunctuationsEntered
TInt
| iPunctuationsEntered | [private] |
TBuf< KPtiMaxWordSize > iTextBuffer
TBuf< KPtiMaxWordSize > | iTextBuffer | [private] |
RPointerArray< CPtiUserDictionary > iUserDictionaries
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.