#include <scim_imengine.h>
Inheritance diagram for scim::IMEngineFactoryBase:
Public Member Functions | |
IMEngineFactoryBase () | |
virtual | ~IMEngineFactoryBase () |
Virtual destructor. | |
virtual bool | validate_encoding (const String &encoding) const |
Check if a encoding is supported by this IMEngineFactory. | |
virtual bool | validate_locale (const String &locale) const |
Check if a locale is supported by this IMEngineFactory. | |
virtual String | get_language () const |
Get the supported language of this input method engine. | |
virtual WideString | inverse_query (const WideString &str) |
Get the original key string of a composed string. | |
String | get_default_locale () const |
Get the default locale of this input method engine. | |
String | get_default_encoding () const |
Get the default encoding of this input method engine. | |
String | get_locales () const |
Get a list of all supported locales, separated by comma. | |
String | get_encodings () const |
Get a list of all supported encodings, separated by comma. | |
Pure virtual members. | |
These member functions must be implemented in derived classes. | |
virtual WideString | get_name () const =0 |
Get the name of this input method engine. | |
virtual String | get_uuid () const =0 |
Get the UUID of this input method engine. | |
virtual String | get_icon_file () const =0 |
Get the icon file path of this input method engine. | |
virtual WideString | get_authors () const =0 |
Get the authors information of this input method engine. | |
virtual WideString | get_credits () const =0 |
Get the credits information of this input method engine. | |
virtual WideString | get_help () const =0 |
Get the help information of this input method engine. | |
virtual IMEngineInstancePointer | create_instance (const String &encoding, int id=-1)=0 |
Create a new IMEngineInstance object. | |
Protected Member Functions | |
void | set_locales (const String &locales) |
Set the locales supported by this input method engine. | |
void | set_languages (const String &languages) |
Set the languages supported by this input method engine. |
Each input method should implement a class derived from scim::IMEngineFactoryBase, which takes charge of holding shared data, creating IMEngineInstances etc.
Definition at line 111 of file scim_imengine.h.
|
|
|
Virtual destructor.
|
|
Get the name of this input method engine. This name should be a localized string.
Implemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Get the UUID of this input method engine. Each input method engine has an unique UUID to distinguish itself from other engines. You may use uuidgen command shipped with e2fsprogs package to generate this UUID.
Implemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Get the icon file path of this input method engine.
Implemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Get the authors information of this input method engine. This string should be a localized string.
Implemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Get the credits information of this input method engine. This string should be a localized string.
Implemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Get the help information of this input method engine. This string should be a localized string.
Implemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Create a new IMEngineInstance object. This method creates a new scim::IMEngineInstanceBase object with the given encoding and id.
Implemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Check if a encoding is supported by this IMEngineFactory. The default implementation of this virtual function validates the encoding against the locale list set by method set_locales. It should be enough in most case.
Reimplemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Check if a locale is supported by this IMEngineFactory. The default implementation of this virtual function validates the locale against the locale list set by method set_locales. It should be enough in most case.
Reimplemented in scim::ComposeKeyFactory, and scim::DummyIMEngineFactory. |
|
Get the supported language of this input method engine. The language name conforms to glibc locale naming standard, like: zh_CN Simplified Chinese zh_TW Traditional Chinese ja_JP Japanese ru_RU for Russian The second part of the name (territory id) can be omitted. The default implementation of this method will get the language name according to the return value of get_default_locale () method. This method maybe overwrited to return another language name, for example returning "~other" means other uncategorized languages. |
|
Get the original key string of a composed string. For example, in the pinyin input method of Simplified Chinese: the key string of composed string "中国" can be "zhongguo". The default implementation just returns a empty string.
|
|
Get the default locale of this input method engine. The default locale is the first locale in the locale list, which is set by method set_locales.
|
|
Get the default encoding of this input method engine. The default encoding is the first locale's encoding in the locale list, which is set by method set_locales.
|
|
Get a list of all supported locales, separated by comma.
|
|
Get a list of all supported encodings, separated by comma.
|
|
Set the locales supported by this input method engine. This method should be called within the constructors of the derived classes. set_locales () and set_languages () are exclusive with each other. Only one method should be used for one Factory object.
|
|
Set the languages supported by this input method engine. This method should be called within the constructors of the derived classes. set_locales () and set_languages () are exclusive with each other. Only one method should be used for one Factory object.
|