MPtiCore Class Reference
This is abstract base class of all PtiEngine core objects. A PtiEngine core object implements set of input modes and input related services for a set of languages. This class defines core side PtiEngine API.
Public Member Functions |
---|
TInt
| AddUserDictionaryEntry(MPtiUserDictionaryEntry &, CPtiUserDictionary *) |
void | AppendKeyPress(TPtiKey) |
TInt
| AttachUserDictionary(CPtiUserDictionary *) |
TInt
| CancelTimerActivity() |
void | ClearBuffer() |
TInt
| CloseLanguageL() |
TInt
| CommitCurrentWord() |
MPtiEngineCompositionDataInterface * | CompositionData() |
TInt
| Convert(TPtiCharConversion, TAny *, TInt, TAny *) |
CPtiUserDictionary * | CreateEmptyUserDictionaryL(TInt) |
void | DeleteKeyPress() |
TBool
| DetachUserDictionary(CPtiUserDictionary *) |
void | DropLanguages(CArrayPtrFlat< CPtiCoreLanguage > *) |
TInt
| GetCandidateListL(CDesCArray &) |
TPtrC
| GetCandidatePage() |
HBufC * | GetCandidatesByInputString(const TDesC &, RPointerArray< HBufC > &, const TBool) |
MPtiCoreInfo * | GetCoreInfo() |
TPtrC
| GetCurrentWord() |
TInt
| GetFirstCandidate(TDes &) |
TInt
| GetNextCandidate(TDes &) |
TInt
| GetNextWordCandidateListL(CDesCArray &) |
TPtrC
| GetPhoneticSpelling(TInt) |
TInt
| GetPreviousCandidate(TDes &) |
TInt
| GetSpelling(TUint16, TDes &, TPtiSpelling) |
TInt
| GetUserDictionaryEntry(TInt, MPtiUserDictionaryEntry &, CPtiUserDictionary *) |
TInt
| HandleCommandL(TPtiEngineCommand, TAny *) |
void | InitializeL(CPtiEngine *, TDes *, CArrayPtrFlat< CPtiCoreLanguage > *, TBool) |
TBool
| IsToneMarkValidForSpelling() |
TBool
| MoreCandidatePages() |
TBool
| NextCandidatePage() |
TInt
| NumberOfCandidates() |
TInt
| NumberOfEntriesInUserDictionary(CPtiUserDictionary *) |
TInt
| OpenLanguageL(CPtiCoreLanguage *) |
TInt
| PhoneticSpellingCount() |
TBool
| PreviousCandidatePage() |
TPtrC
| ReadingTextL() |
TInt
| RemoveUserDictionaryEntry(MPtiUserDictionaryEntry &, CPtiUserDictionary *) |
TBool
| SelectPhoneticSpelling(TInt) |
TInt
| SelectedPhoneticSpelling() |
void | SetCandidatePageLength(TInt) |
TInt
| SetCurrentInputSequence(TPtrC8) |
TInt
| SetExternalKeyMapL(TPtiEngineInputMode, TPtiKey, TDesC &, TPtiTextCase) |
TBool
| SetPredictiveChineseChar(const TDesC &) |
TInt
| SetReordering(TBool) |
TBool
| SetToneMark(TInt) |
TBool
| ToneMark(TText &) |
Member Functions Documentation
AddUserDictionaryEntry(MPtiUserDictionaryEntry &, CPtiUserDictionary *)
AppendKeyPress(TPtiKey)
void | AppendKeyPress | ( | TPtiKey | aKey | ) | [pure virtual] |
This is the single most important core API method, most of the text input functionality will be utilize this method. Call to this method indicates core object that a key was pressed and it should act accordingly and fill the output buffer.
Parameters
TPtiKey aKey | Enum value for pressed key. |
AttachUserDictionary(CPtiUserDictionary *)
CancelTimerActivity()
TInt
| CancelTimerActivity | ( | ) | [pure virtual] |
Cancels all on-going core obejct timner activity.
ClearBuffer()
void | ClearBuffer | ( | ) | [pure virtual] |
Call to this method notifys core object that input buffer was cleared.
CloseLanguageL()
TInt
| CloseLanguageL | ( | ) | [pure virtual] |
Closes currently activate language and frees resources associated to it.
CommitCurrentWord()
TInt
| CommitCurrentWord | ( | ) | [pure virtual] |
Commits current word. Commiting means that user has added current word as part of text. Frequency information and other related attributes can then be updated.
CompositionData()
MPtiEngineCompositionDataInterface * | CompositionData | ( | ) | [pure virtual] |
Convert(TPtiCharConversion, TAny *, TInt, TAny *)
Converts given string from one character set to another. Possible conversion types are defined in PtiDefs.h
Parameters
TPtiCharConversion aType | Conversion type. |
TAny * aInput | Pointer to input string to be converted. |
TInt aInputLength | Length of input buffer. |
TAny * aOutput | pointer to output buffer. |
CreateEmptyUserDictionaryL(TInt)
DeleteKeyPress()
void | DeleteKeyPress | ( | ) | [pure virtual] |
Indicates core object that it should perform 'delete key press'-operation.
DetachUserDictionary(CPtiUserDictionary *)
DropLanguages(CArrayPtrFlat< CPtiCoreLanguage > *)
Removes languages associated to this core object from given language list. Languages not associated to this core abject are not touched.
GetCandidateListL(CDesCArray &)
Returns a list of candidate words for currently entered key sequence.
Parameters
CDesCArray & aList | A list to be filled with candidate words. |
GetCandidatePage()
TPtrC
| GetCandidatePage | ( | ) | [pure virtual] |
GetCandidatesByInputString(const TDesC &, RPointerArray< HBufC > &, const TBool)
GetCoreInfo()
Returns a pointer core info structure. Core info struct contains useful information about core object and its features.
GetCurrentWord()
TPtrC
| GetCurrentWord | ( | ) | const [pure virtual] |
Returns the contents of text buffer.
GetFirstCandidate(TDes &)
TInt
| GetFirstCandidate | ( | TDes & | aResult | ) | [pure virtual] |
Returns first word in list of candidate words for current input sequence.
Parameters
TDes & aResult | A descriptor where resulting word will be stored. |
GetNextCandidate(TDes &)
TInt
| GetNextCandidate | ( | TDes & | aResult | ) | [pure virtual] |
Returns next word in list of candidate words for current input sequence.
Parameters
TDes & aResult | A descriptor where resulting word will be stored. |
GetNextWordCandidateListL(CDesCArray &)
Returns next word candidate list. Next word candidates are words potentially related to currently selected candidate. Next word prediction feature must supported by the engine and turned on.
GetPhoneticSpelling(TInt)
TPtrC
| GetPhoneticSpelling | ( | TInt | aIndex | ) | const [pure virtual] |
GetPreviousCandidate(TDes &)
TInt
| GetPreviousCandidate | ( | TDes & | aResult | ) | [pure virtual] |
Returns previous word in list of candidate words for current input sequence.
Parameters
TDes & aResult | A descriptor where resulting word will be stored. |
GetSpelling(TUint16, TDes &, TPtiSpelling)
Returns alternate spelling for given unicode characters. Possible conversion types are defined in header PtiDefs.h.
2.6 A character to be converted. Resulting alternate spelling will be stored here. Spelling conversion type.
GetUserDictionaryEntry(TInt, MPtiUserDictionaryEntry &, CPtiUserDictionary *)
HandleCommandL(TPtiEngineCommand, TAny *)
A generic command handling method for extending PtiEngine API without adding new base class methods. It is recommended to use this only in force major situations, where there is no other way.
Parameters
TPtiEngineCommand aCommand | A Command id value. Platform wide command ids are defined in PtiDefs.h. |
TAny * aParams | TAny pointer for passing any required parameters. |
InitializeL(CPtiEngine *, TDes *, CArrayPtrFlat< CPtiCoreLanguage > *, TBool)
Initialized core object. This method is called by PtiEngine framework when core object is loaded.
Parameters
CPtiEngine * aOwner | Pointer to onwing PtiEngine framework instance. |
TDes * aTextBuffer | A pointer to PtiEngine main text buffer. |
CArrayPtrFlat< CPtiCoreLanguage > * aLanguageList | A language list to be filled with language bindings to this core onbject |
TBool aUseDefautUserDictionary | A boolean value indicating whether default user dictionary shoulkd be used (in case this core object supports user dictionaries). |
IsToneMarkValidForSpelling()
TBool
| IsToneMarkValidForSpelling | ( | ) | [pure virtual] |
MoreCandidatePages()
TBool
| MoreCandidatePages | ( | ) | [pure virtual] |
NextCandidatePage()
TBool
| NextCandidatePage | ( | ) | [pure virtual] |
NumberOfCandidates()
TInt
| NumberOfCandidates | ( | ) | [pure virtual] |
Returns number of candidates for currently entered key sequence.
NumberOfEntriesInUserDictionary(CPtiUserDictionary *)
OpenLanguageL(CPtiCoreLanguage *)
Opens resources for given language and itinialized them.
Parameters
CPtiCoreLanguage * aLanguage | Symbian OS language code a language to be initialized. |
PhoneticSpellingCount()
TInt
| PhoneticSpellingCount | ( | ) | const [pure virtual] |
PreviousCandidatePage()
TBool
| PreviousCandidatePage | ( | ) | [pure virtual] |
ReadingTextL()
TPtrC
| ReadingTextL | ( | ) | [pure virtual] |
RemoveUserDictionaryEntry(MPtiUserDictionaryEntry &, CPtiUserDictionary *)
SelectPhoneticSpelling(TInt)
TBool
| SelectPhoneticSpelling | ( | TInt | aIndex | ) | [pure virtual] |
SelectedPhoneticSpelling()
TInt
| SelectedPhoneticSpelling | ( | ) | const [pure virtual] |
SetCandidatePageLength(TInt)
void | SetCandidatePageLength | ( | TInt | aLength | ) | [pure virtual] |
SetCurrentInputSequence(TPtrC8)
TInt
| SetCurrentInputSequence | ( | TPtrC8 | aInput | ) | [pure virtual] |
Sets current input sequence. The end result of this operation must be same as if user had entered keys in input array as individual key presses.
Parameters
TPtrC8 aInput | An array containing sequence of key presses (type TPtiKey). |
SetExternalKeyMapL(TPtiEngineInputMode, TPtiKey, TDesC &, TPtiTextCase)
Re-defines keymappings for given key / input mode / case combination. Previous keymapping will be deleted and new mappings will be used instead.
SetPredictiveChineseChar(const TDesC &)
TBool
| SetPredictiveChineseChar | ( | const TDesC & | aChar | ) | [pure virtual] |
SetReordering(TBool)
TInt
| SetReordering | ( | TBool | aStatus | ) | [pure virtual] |
Turns reoreding feature on or off. Reordering means that prediction engine maintains frequency information for used words and modifys the order of candidate list based on that information. This feature may not be supported by all prediction engines.
Parameters
TBool aStatus | New status for reorderinf feature. |
SetToneMark(TInt)
TBool
| SetToneMark | ( | TInt | aToneMark | ) | [pure virtual] |
ToneMark(TText &)
TBool
| ToneMark | ( | TText & | aToneMark | ) | const [pure virtual] |
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.