#include <mw/PtiLanguage.h>
class CPtiCoreLanguage : public CBase |
Implementation class for a PtiEngine language. This class is used mainly in PtiEngine and core objects code and it implements clients side language interface class. PtiEngine maintains language list containing instances of this class. CPtiCoreLanguage class also maintains list of <core <-> input mode> bindings.
IMPORT_C CPtiKeyMapDataFactory * | DataFactory | ( | ) | const |
Returns active data factory.
Returns: A pointer to active data factory.
IMPORT_C MPtiCore * | GetCore | ( | TPtiEngineInputMode | aMode | ) |
Returns core object for given input mode.
Input mode to be queried.
Returns: Pointer to core object. NULL if no core object is asigned to given input mode.
IMPORT_C MPtiKeyMappings * | GetHalfQwertyKeymappings | ( | ) | const |
Returns pointer to half qwerty keymappings object.
Returns: Pointer to half qwerty keymappings. NULL if no half qwerty keymappings available.
IMPORT_C MPtiKeyMappings * | GetKeymappings | ( | ) | const |
Returns pointer to multitapping keymappings object.
Returns: Pointer to current multitapping keymappings. NULL if no multitapping keymappings available.
IMPORT_C MPtiKeyMappings * | GetQwertyKeymappings | ( | ) | const |
Returns pointer to qwerty keymappings object.
Returns: Pointer to current qwerty keymappings. NULL if no qwerty keymappings available.
IMPORT_C TBool | HasInputMode | ( | TPtiEngineInputMode | aMode | ) | const |
Returns a boolean value indicating whether this language supports given input mode.
Parameter | Description |
---|---|
aMode | Input mode to be queried. |
Returns: ETrue if input mode is supported. EFalse otherwise.
TInt | LanguageCode | ( | ) | const [inline] |
Returns Symbian OS language code for this language object.
Returns: Language code
TPtrC | LocalizedName | ( | ) | const [inline] |
Returns constant descriptor pointing to localized name for this language.
Returns: Localized language name.
IMPORT_C TDes & | LocalizedNameDes | ( | ) |
Returns descriptor pointing to localized language name.
Returns: Localoized language name descriptor.
IMPORT_C CPtiKeyMapData * | RawKeyMapData | ( | ) | const |
Returns raw keymap data object.
Returns: A pointer to raw keymap data object.
IMPORT_C void | RemoveCore | ( | MPtiCore * | aCore | ) |
Removes detachs given core object from all input modes it is attached to.
Parameter | Description |
---|---|
aCore | A core object to be detached. |
IMPORT_C void | SetCore | ( | MPtiCore * | aCore, |
TPtiEngineInputMode | aMode | |||
) |
Sets core object for given input mode. If input mode already has a core object asigned to it, it will be replaced.
Parameter | Description |
---|---|
aCore | Pointer to core object |
aMode | Input mode for core object. |
IMPORT_C void | SetHalfQwertyKeyMappings | ( | MPtiKeyMappings * | aMappings | ) |
Sets half qwerty keymappings.
Parameter | Description |
---|---|
aMappings | Pointer to keymappings object to be set. |
void | SetKeyMapDataFactory | ( | CPtiKeyMapDataFactory * | aFactory | ) |
Sets keymap data factory class.
Parameter | Description |
---|---|
aFactory | A keymap data factory to be used. |
IMPORT_C void | SetKeyMappings | ( | MPtiKeyMappings * | aMappings | ) |
Sets multitapping keymappings.
Parameter | Description |
---|---|
aMappings | Pointer to keymappings object to be set. |
IMPORT_C void | SetLanguageCode | ( | TInt | aCode | ) |
Sets Symbian OS language code for this language.
Parameter | Description |
---|---|
aCode | Language code to be set. |
IMPORT_C void | SetLocalizedName | ( | const TDesC & | aName | ) |
Sets localized language name.
Parameter | Description |
---|---|
aName | Language name to be set. |
IMPORT_C void | SetQwertyKeyMappings | ( | MPtiKeyMappings * | aMappings | ) |
Sets qwerty keymappings.
Parameter | Description |
---|---|
aMappings | Pointer to keymappings object to be set. |