MPtiCore Class Reference
Public Member Functions |
---|
pure virtual
TInt
| AddUserDictionaryEntry(MPtiUserDictionaryEntry &, CPtiUserDictionary *) |
pure virtual void | AppendKeyPress(TPtiKey) |
pure virtual
TInt
| AttachUserDictionary(CPtiUserDictionary *) |
pure virtual
TInt
| CancelTimerActivity() |
pure virtual void | ClearBuffer() |
pure virtual
TInt
| CloseLanguageL() |
pure virtual
TInt
| CommitCurrentWord() |
pure virtual MPtiEngineCompositionDataInterface * | CompositionData() |
pure virtual
TInt
| Convert(TPtiCharConversion, TAny *, TInt, TAny *) |
pure virtual
CPtiUserDictionary * | CreateEmptyUserDictionaryL(TInt) |
pure virtual void | DeleteKeyPress() |
pure virtual
TBool
| DetachUserDictionary(CPtiUserDictionary *) |
pure virtual void | DropLanguages(CArrayPtrFlat< CPtiCoreLanguage > *) |
pure virtual
TInt
| GetCandidateListL(CDesCArray &) |
pure virtual
TPtrC
| GetCandidatePage() |
pure virtual
HBufC * | GetCandidatesByInputString(const TDesC &, RPointerArray< HBufC > &, const TBool) |
pure virtual
MPtiCoreInfo * | GetCoreInfo() |
pure virtual
TPtrC
| GetCurrentWord() |
pure virtual
TInt
| GetFirstCandidate(TDes &) |
pure virtual
TInt
| GetNextCandidate(TDes &) |
pure virtual
TInt
| GetNextWordCandidateListL(CDesCArray &) |
pure virtual
TPtrC
| GetPhoneticSpelling(TInt) |
pure virtual
TInt
| GetPreviousCandidate(TDes &) |
pure virtual
TInt
| GetSpelling(TUint16, TDes &, TPtiSpelling) |
pure virtual
TInt
| GetUserDictionaryEntry(TInt, MPtiUserDictionaryEntry &, CPtiUserDictionary *) |
pure virtual
TInt
| HandleCommandL(TPtiEngineCommand, TAny *) |
pure virtual void | InitializeL(CPtiEngine *, TDes *, CArrayPtrFlat< CPtiCoreLanguage > *, TBool) |
pure virtual
TBool
| IsToneMarkValidForSpelling() |
pure virtual
TBool
| MoreCandidatePages() |
pure virtual
TBool
| NextCandidatePage() |
pure virtual
TInt
| NumberOfCandidates() |
pure virtual
TInt
| NumberOfEntriesInUserDictionary(CPtiUserDictionary *) |
pure virtual
TInt
| OpenLanguageL(CPtiCoreLanguage *) |
pure virtual
TInt
| PhoneticSpellingCount() |
pure virtual
TBool
| PreviousCandidatePage() |
pure virtual
TPtrC
| ReadingTextL() |
pure virtual
TInt
| RemoveUserDictionaryEntry(MPtiUserDictionaryEntry &, CPtiUserDictionary *) |
pure virtual
TBool
| SelectPhoneticSpelling(TInt) |
pure virtual
TInt
| SelectedPhoneticSpelling() |
pure virtual void | SetCandidatePageLength(TInt) |
pure virtual
TInt
| SetCurrentInputSequence(TPtrC8) |
pure virtual
TInt
| SetExternalKeyMapL(TPtiEngineInputMode, TPtiKey, TDesC &, TPtiTextCase) |
pure virtual
TBool
| SetPredictiveChineseChar(const TDesC &) |
pure virtual
TInt
| SetReordering(TBool) |
pure virtual
TBool
| SetToneMark(TInt) |
pure virtual
TBool
| ToneMark(TText &) |
Detailed Description
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.
Member Function 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.
Parameter | Description | aKey | Enum value for pressed key. |
AttachUserDictionary ( CPtiUserDictionary * )
CancelTimerActivity ( )
TInt
| CancelTimerActivity | ( | ) | [pure virtual] |
Cancels all on-going core obejct timner activity.
Returns: KErrNone or system wide error code.
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.
Returns: KErrNone of system wide error ocde.
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.
Returns: KErrNone or a system wide error code.
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
Parameter | Description | aType | Conversion type. |
aInput | Pointer to input string to be converted. |
aInputLength | Length of input buffer. |
aOutput | pointer to output buffer. |
Returns: KErrNone or a system wide error code.
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.
Parameter | Description | aLanguageList | A language list to be cleaned. |
GetCandidateListL ( CDesCArray & )
Returns a list of candidate words for currently entered key sequence.
Parameter | Description | aList | A list to be filled with candidate words. |
Returns: Number of candidate works in aList.
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.
Returns: A constant pointer to text buffer.
GetFirstCandidate ( TDes & )
TInt
| GetFirstCandidate | ( | TDes & | aResult | ) | [pure virtual] |
Returns first word in list of candidate words for current input sequence.
Parameter | Description | aResult | A descriptor where resulting word will be stored. |
Returns: KErrnNone or system wide error code.
GetNextCandidate ( TDes & )
TInt
| GetNextCandidate | ( | TDes & | aResult | ) | [pure virtual] |
Returns next word in list of candidate words for current input sequence.
Parameter | Description | aResult | A descriptor where resulting word will be stored. |
Returns: KErrnNone or system wide error code.
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.
Parameter | Description | aResult | A descriptor where resulting word will be stored. |
Returns: KErrnNone or system wide error code.
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.
Returns: KErrNone or system wide error code.
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.
Parameter | Description | aCommand | A Command id value. Platform wide command ids are defined in PtiDefs.h. |
aParams | TAny pointer for passing any required parameters. |
Returns: An integer containing possible return value related to command.
InitializeL ( CPtiEngine *, TDes *, CArrayPtrFlat< CPtiCoreLanguage > *, TBool )
Initialized core object. This method is called by PtiEngine framework when core object is loaded.
Parameter | Description | aOwner | Pointer to onwing PtiEngine framework instance. |
aTextBuffer | A pointer to PtiEngine main text buffer. |
aLanguageList | A language list to be filled with language bindings to this core onbject |
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.
Returns: Number of prediction candidates for currently entered key sequence.
NumberOfEntriesInUserDictionary ( CPtiUserDictionary * )
OpenLanguageL ( CPtiCoreLanguage * )
Opens resources for given language and itinialized them.
Parameter | Description | aLanguage | Symbian OS language code a language to be initialized. |
Returns: KErrNone or a system wide error code.
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.
Parameter | Description | aInput | An array containing sequence of key presses (type TPtiKey). |
Returns: KErrNone or a system wide error code.
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.
Parameter | Description | aMode | Input mode for new key mapping. |
aKey | A key to be replaced. |
aKeyMap | New keymapping data for aKey. |
aCase | Text case to be replaced. |
Returns: KErrNone or system wide error code.
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.
Parameter | Description | aStatus | New status for reorderinf feature. |
Returns: KErrNone or a system wide error code.
SetToneMark ( TInt )
TBool
| SetToneMark | ( | TInt | aToneMark | ) | [pure virtual] |
ToneMark ( TText & )
TBool
| ToneMark | ( | TText & | aToneMark | ) | const [pure virtual] |