#include <scim_backend.h>
Public Member Functions | |
| String | get_all_locales () const |
| Get a list of all locales supported by all IMEngineFactories. | |
| IMEngineFactoryPointer | get_factory (const String &uuid) const |
Methods to manipulate IMEngine Factories. | |
| uint32 | get_factories_for_encoding (std::vector< IMEngineFactoryPointer > &factories, const String &encoding=String("")) const |
| Get the IMEngine factories list for specific encoding. | |
| uint32 | get_factories_for_language (std::vector< IMEngineFactoryPointer > &factories, const String &language=String("")) const |
| Get the IMEngine factories list for specific language. | |
| IMEngineFactoryPointer | get_default_factory (const String &language, const String &encoding) const |
| Get the default IMEngineFactory for a specific language and encoding. | |
| void | set_default_factory (const String &language, const String &uuid) |
| Set the default IMEngineFactory for a specific language. | |
| IMEngineFactoryPointer | get_next_factory (const String &language, const String &encoding, const String &cur_uuid) const |
| Get the next IMEngineFactory for a specific language and encoding. | |
| IMEngineFactoryPointer | get_previous_factory (const String &language, const String &encoding, const String &cur_uuid) const |
| Get the previous IMEngineFactory for a specific language and encoding. | |
Protected Member Functions | |
| BackEndBase (const ConfigPointer &config) | |
| Default constructor. | |
| virtual | ~BackEndBase () |
| bool | add_factory (const IMEngineFactoryPointer &factory) |
| void | clear () |
This is mainly an accessory interface class used by scim::FrontEndBase. Its responsibility is to hold a set of IMEngineFactory instances and manage the locales list supported by them.
Most developer should just use the default implementation scim::CommonBackEnd.
| scim::BackEndBase::BackEndBase | ( | const ConfigPointer & | config | ) | [protected] |
Default constructor.
| config | Config object to be used. |
| virtual scim::BackEndBase::~BackEndBase | ( | ) | [protected, virtual] |
| String scim::BackEndBase::get_all_locales | ( | ) | const |
Get a list of all locales supported by all IMEngineFactories.
| IMEngineFactoryPointer scim::BackEndBase::get_factory | ( | const String & | uuid | ) | const |
| uuid | The uuid of the IMEngineFactory. |
| uint32 scim::BackEndBase::get_factories_for_encoding | ( | std::vector< IMEngineFactoryPointer > & | factories, | |
| const String & | encoding = String("") | |||
| ) | const |
Get the IMEngine factories list for specific encoding.
| factories | the vector to store the factories which support the encoding. | |
| encoding | the encoding to be queried. If empty, all IMEngine factories will be returned. |
| uint32 scim::BackEndBase::get_factories_for_language | ( | std::vector< IMEngineFactoryPointer > & | factories, | |
| const String & | language = String("") | |||
| ) | const |
Get the IMEngine factories list for specific language.
| factories | the vector to store the factories which support the encoding. | |
| language | the language to be queried. If empty, all IMEngine factories will be returned. |
| IMEngineFactoryPointer scim::BackEndBase::get_default_factory | ( | const String & | language, | |
| const String & | encoding | |||
| ) | const |
Get the default IMEngineFactory for a specific language and encoding.
| language | the language to be queried. | |
| encoding | the encoding to be queried, if empty then don't match encoding. |
Set the default IMEngineFactory for a specific language.
| language | the language to be set. | |
| uuid | the uuid of the default IMEngineFactory for this language. |
| IMEngineFactoryPointer scim::BackEndBase::get_next_factory | ( | const String & | language, | |
| const String & | encoding, | |||
| const String & | cur_uuid | |||
| ) | const |
Get the next IMEngineFactory for a specific language and encoding.
| language | the language to be queried, if empty then don't match language. | |
| encoding | the encoding to be queried, if empty then don't match encoding. | |
| cur_uuid | the UUID of current IMEngineFactory. |
| IMEngineFactoryPointer scim::BackEndBase::get_previous_factory | ( | const String & | language, | |
| const String & | encoding, | |||
| const String & | cur_uuid | |||
| ) | const |
Get the previous IMEngineFactory for a specific language and encoding.
| language | the language to be queried, if empty then don't match language. | |
| encoding | the encoding to be queried, if empty then don't match encoding. | |
| cur_uuid | the UUID of current IMEngineFactory. |
| bool scim::BackEndBase::add_factory | ( | const IMEngineFactoryPointer & | factory | ) | [protected] |
| void scim::BackEndBase::clear | ( | ) | [protected] |
1.5.7.1