![]() |
![]() |
![]() |
IBus Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
IBusBus; IBusBusClass; IBusBus * ibus_bus_new (void
); gboolean ibus_bus_is_connected (IBusBus *bus
); GDBusConnection * ibus_bus_get_connection (IBusBus *bus
); const gchar * ibus_bus_hello (IBusBus *bus
); guint ibus_bus_request_name (IBusBus *bus
,const gchar *name
,guint flags
); void ibus_bus_request_name_async (IBusBus *bus
,const gchar *name
,guint flags
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); guint ibus_bus_request_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); guint ibus_bus_release_name (IBusBus *bus
,const gchar *name
); void ibus_bus_release_name_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); guint ibus_bus_release_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_name_has_owner (IBusBus *bus
,const gchar *name
); void ibus_bus_name_has_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_name_has_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GList * ibus_bus_list_names (IBusBus *bus
); gboolean ibus_bus_add_match (IBusBus *bus
,const gchar *rule
); void ibus_bus_add_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_add_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_remove_match (IBusBus *bus
,const gchar *rule
); void ibus_bus_remove_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_remove_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gchar * ibus_bus_get_name_owner (IBusBus *bus
,const gchar *name
); void ibus_bus_get_name_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gchar * ibus_bus_get_name_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_exit (IBusBus *bus
,gboolean restart
); void ibus_bus_exit_async (IBusBus *bus
,gboolean restart
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_exit_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); IBusInputContext * ibus_bus_create_input_context (IBusBus *bus
,const gchar *client_name
); void ibus_bus_create_input_context_async (IBusBus *bus
,const gchar *client_name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); IBusInputContext * ibus_bus_create_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gchar * ibus_bus_current_input_context (IBusBus *bus
); void ibus_bus_current_input_context_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gchar * ibus_bus_current_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_register_component (IBusBus *bus
,IBusComponent *component
); void ibus_bus_register_component_async (IBusBus *bus
,IBusComponent *component
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_register_component_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GList * ibus_bus_list_engines (IBusBus *bus
); void ibus_bus_list_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); GList * ibus_bus_list_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); GList * ibus_bus_list_active_engines (IBusBus *bus
); void ibus_bus_list_active_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); GList * ibus_bus_list_active_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_get_use_sys_layout (IBusBus *bus
); void ibus_bus_get_use_sys_layout_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_get_use_sys_layout_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_get_use_global_engine (IBusBus *bus
); void ibus_bus_get_use_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_get_use_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_is_global_engine_enabled (IBusBus *bus
); void ibus_bus_is_global_engine_enabled_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_is_global_engine_enabled_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); IBusEngineDesc * ibus_bus_get_global_engine (IBusBus *bus
); void ibus_bus_get_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); IBusEngineDesc * ibus_bus_get_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); gboolean ibus_bus_set_global_engine (IBusBus *bus
,const gchar *global_engine
); void ibus_bus_set_global_engine_async (IBusBus *bus
,const gchar *global_engine
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean ibus_bus_set_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
); void ibus_bus_set_watch_dbus_signal (IBusBus *bus
,gboolean watch
); void ibus_bus_set_watch_ibus_signal (IBusBus *bus
,gboolean watch
); IBusConfig * ibus_bus_get_config (IBusBus *bus
);
"connected" : Run Last "disconnected" : Run Last "global-engine-changed" : Run Last "name-owner-changed" : Run Last
typedef struct _IBusBus IBusBus;
An opaque data type representing IBus bus (daemon communication) status.
IBusBus * ibus_bus_new (void
);
New an IBusBus instance.
Returns : |
A newly allocated IBusBus instance, and the instance is not floating. |
gboolean ibus_bus_is_connected (IBusBus *bus
);
Return TRUE
if bus
is connected to IBus daemon.
GDBusConnection * ibus_bus_get_connection (IBusBus *bus
);
Return GDBusConnection of an IBusIBus instance.
|
An IBusBus. |
Returns : |
A GDBusConnection of an IBusIBus instance. [transfer none] |
const gchar * ibus_bus_hello (IBusBus *bus
);
This function sends a "HELLO" message to DBus daemon, which replies the unique name of current IBus process.
|
An IBusBus. |
Returns : |
The unique name of IBus process in DBus. |
guint ibus_bus_request_name (IBusBus *bus
,const gchar *name
,guint flags
);
Request a name from IBus daemon synchronously.
|
the IBusBus instance to be processed. |
|
Name to be requested. |
|
Flags (FixMe). |
Returns : |
0 if failed; positive number otherwise. |
void ibus_bus_request_name_async (IBusBus *bus
,const gchar *name
,guint flags
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Request a name from IBus daemon asynchronously.
|
An IBusBus. |
|
Name to be requested. |
|
Flags (FixMe). |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
guint ibus_bus_request_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_request_name_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_request_name_async() .
|
|
Return location for error or NULL .
|
Returns : |
0 if failed; positive number otherwise. |
guint ibus_bus_release_name (IBusBus *bus
,const gchar *name
);
Release a name to IBus daemon synchronously.
|
An IBusBus. |
|
Name to be released. |
Returns : |
0 if failed; positive number otherwise. |
void ibus_bus_release_name_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Release a name to IBus daemon asynchronously.
|
An IBusBus. |
|
Name to be released. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
guint ibus_bus_release_name_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_release_name_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_release_name_async() .
|
|
Return location for error or NULL .
|
Returns : |
0 if failed; positive number otherwise. |
gboolean ibus_bus_name_has_owner (IBusBus *bus
,const gchar *name
);
Checks whether the name has owner synchronously.
void ibus_bus_name_has_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Checks whether the name has owner asynchronously.
|
An IBusBus. |
|
Name to be checked. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_name_has_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_name_has_owner_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_name_has_owner_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if the name has owner, FALSE otherwise.
|
GList * ibus_bus_list_names (IBusBus *bus
);
Return lists that attached to bus
.
<note><para>[FixMe] Not implemented yet, only return NULL.</para></note>
<note><para>[FixMe] Add async version.</para></note>
|
An IBusBus. |
Returns : |
Lists that attached to bus . [transfer full][element-type utf8]
|
gboolean ibus_bus_add_match (IBusBus *bus
,const gchar *rule
);
Add a match rule to an IBusBus synchronously.
void ibus_bus_add_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Add a match rule to an IBusBus asynchronously.
|
An IBusBus. |
|
Match rule. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_add_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_add_match_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_add_match_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if the rule is added. FALSE otherwise.
|
gboolean ibus_bus_remove_match (IBusBus *bus
,const gchar *rule
);
Remove a match rule to an IBusBus synchronously.
void ibus_bus_remove_match_async (IBusBus *bus
,const gchar *rule
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Remove a match rule to an IBusBus asynchronously.
|
An IBusBus. |
|
Match rule. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_remove_match_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_remove_match_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_remove_match_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if the rule is removed. FALSE otherwise.
|
gchar * ibus_bus_get_name_owner (IBusBus *bus
,const gchar *name
);
Return the name owner synchronously.
void ibus_bus_get_name_owner_async (IBusBus *bus
,const gchar *name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Return the name owner asynchronously.
|
An IBusBus. |
|
Name. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gchar * ibus_bus_get_name_owner_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_get_name_owner_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_name_owner_async() .
|
|
Return location for error or NULL .
|
Returns : |
Owner of the name. The returned value must be freed with g_free() .
|
gboolean ibus_bus_exit (IBusBus *bus
,gboolean restart
);
Exit or restart ibus-daemon synchronously.
void ibus_bus_exit_async (IBusBus *bus
,gboolean restart
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Exit or restart ibus-daemon asynchronously.
|
An IBusBus. |
|
Whether restarting the ibus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_exit_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_exit_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_exit_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if the "Exit" call is suceeded, FALSE otherwise.
|
IBusInputContext * ibus_bus_create_input_context (IBusBus *bus
,const gchar *client_name
);
Create an input context for client synchronously.
|
An IBusBus. |
|
Name of client. |
Returns : |
An newly allocated IBusInputContext if the "CreateInputContext"
call is suceeded, NULL otherwise.
|
void ibus_bus_create_input_context_async (IBusBus *bus
,const gchar *client_name
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Create an input context for client asynchronously.
|
An IBusBus. |
|
Name of client. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied.
It should not be NULL .
|
|
The data to pass to callback. |
IBusInputContext * ibus_bus_create_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_create_input_context_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_create_input_context_async() .
|
|
Return location for error or NULL .
|
Returns : |
An newly allocated IBusInputContext if the "CreateInputContext"
call is suceeded, NULL otherwise.
|
gchar * ibus_bus_current_input_context (IBusBus *bus
);
Get the current focused input context synchronously.
|
An IBusBus. |
Returns : |
The named of currently focued IBusInputContext if the
"CurrentInputContext" call suceeded, NULL otherwise. The return
value must be freed with g_free() .
|
void ibus_bus_current_input_context_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Get the current focused input context asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gchar * ibus_bus_current_input_context_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_current_input_context_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_current_input_context_async() .
|
|
Return location for error or NULL .
|
Returns : |
The named of currently focued IBusInputContext if the
"CurrentInputContext" call suceeded, NULL otherwise. The return
value must be freed with g_free() .
|
gboolean ibus_bus_register_component (IBusBus *bus
,IBusComponent *component
);
Register a componet to an IBusBus synchronously.
void ibus_bus_register_component_async (IBusBus *bus
,IBusComponent *component
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Register a componet to an IBusBus asynchronously.
|
An IBusBus. |
|
A input engine component. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_register_component_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_register_component_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_register_component_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if the "RegisterComponent" call is suceeded, FALSE otherwise.
|
GList * ibus_bus_list_engines (IBusBus *bus
);
List engines synchronously.
|
An IBusBus. |
Returns : |
A List of engines. [transfer container][element-type IBusEngineDesc] |
void ibus_bus_list_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
List engines asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
GList * ibus_bus_list_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_list_engines_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_list_engines_async() .
|
|
Return location for error or NULL .
|
Returns : |
A List of engines. [transfer container][element-type IBusEngineDesc] |
GList * ibus_bus_list_active_engines (IBusBus *bus
);
List active engines synchronously.
|
An IBusBus. |
Returns : |
A List of active engines. [transfer container][element-type IBusEngineDesc] |
void ibus_bus_list_active_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
List active engines asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
GList * ibus_bus_list_active_engines_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_list_active_engines_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_list_active_engines_async() .
|
|
Return location for error or NULL .
|
Returns : |
A List of active engines. [transfer container][element-type IBusEngineDesc] |
gboolean ibus_bus_get_use_sys_layout (IBusBus *bus
);
Check if the bus's "use_sys_layout" option is enabled or not synchronously.
void ibus_bus_get_use_sys_layout_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Check if the bus's "use_sys_layout" option is enabled or not asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_get_use_sys_layout_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_get_use_sys_layout_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_use_sys_layout_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if "use_sys_layout" option is enabled. |
gboolean ibus_bus_get_use_global_engine (IBusBus *bus
);
Check if the bus's "use_global_engine" option is enabled or not synchronously.
|
An IBusBus. |
Returns : |
TRUE if "use_global_engine" option is enabled. |
void ibus_bus_get_use_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Check if the bus's "use_global_engine" option is enabled or not asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_get_use_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_get_use_global_engine_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_use_global_engine_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if "use_global_engine" option is enabled.
|
gboolean ibus_bus_is_global_engine_enabled (IBusBus *bus
);
Check if the current global engine is enabled or not synchronously.
void ibus_bus_is_global_engine_enabled_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Check if the current global engine is enabled or not asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_is_global_engine_enabled_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_is_global_engine_enabled_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_is_global_engine_enabled_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if the current global engine is enabled.
|
IBusEngineDesc * ibus_bus_get_global_engine (IBusBus *bus
);
Get the description of current global engine synchronously.
void ibus_bus_get_global_engine_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Get the description of current global engine asynchronously.
|
An IBusBus. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL
if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
IBusEngineDesc * ibus_bus_get_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_get_global_engine_async_finish()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_get_global_engine_async_finish() .
|
|
Return location for error or NULL .
|
Returns : |
The description of current global engine, or NULL if there is no
global engine.
|
gboolean ibus_bus_set_global_engine (IBusBus *bus
,const gchar *global_engine
);
Set current global engine synchronously.
void ibus_bus_set_global_engine_async (IBusBus *bus
,const gchar *global_engine
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Set current global engine asynchronously.
|
An IBusBus. |
|
A new engine name. |
|
The timeout in milliseconds or -1 to use the default timeout. |
|
A GCancellable or NULL .
|
|
A GAsyncReadyCallback to call when the request is satisfied
or NULL if you don't care about the result of the method invocation.
|
|
The data to pass to callback. |
gboolean ibus_bus_set_global_engine_async_finish (IBusBus *bus
,GAsyncResult *res
,GError **error
);
Finishes an operation started with ibus_bus_set_global_engine_async()
.
|
An IBusBus. |
|
A GAsyncResult obtained from the GAsyncReadyCallback passed to
ibus_bus_set_global_engine_async() .
|
|
Return location for error or NULL .
|
Returns : |
TRUE if no IPC errros. FALSE otherwise.
|
void ibus_bus_set_watch_dbus_signal (IBusBus *bus
,gboolean watch
);
Start or stop watching the NameOwnerChanged DBus signal.
void ibus_bus_set_watch_ibus_signal (IBusBus *bus
,gboolean watch
);
Start or stop watching the GlobalEngineChanged IBus signal.
IBusConfig * ibus_bus_get_config (IBusBus *bus
);
Get the config instance from IBusBus.
|
An IBusBus. |
Returns : |
An IBusConfig object which is configurable with
bus . [transfer none]
|
"connected"
signalvoid user_function (IBusBus *bus, gpointer user_data) : Run Last
Emitted when IBusBus is connected to ibus-daemon.
|
The IBusBus object which recevied the signal |
|
user data set when the signal handler was connected. |
"disconnected"
signalvoid user_function (IBusBus *bus, gpointer user_data) : Run Last
Emitted when IBusBus is disconnected from ibus-daemon.
|
The IBusBus object which recevied the signal |
|
user data set when the signal handler was connected. |
"global-engine-changed"
signalvoid user_function (IBusBus *bus, gchar *name, gpointer user_data) : Run Last
Emitted when global engine is changed.
|
The IBusBus object which recevied the signal |
|
The name of the new global engine. |
|
user data set when the signal handler was connected. |
"name-owner-changed"
signalvoid user_function (IBusBus *bus, gchar *name, gchar *old_owner, gchar *new_owner, gpointer user_data) : Run Last
Emitted when D-Bus name owner is changed.
|
The IBusBus object which recevied the signal |
|
The name which ower is changed. |
|
The unique bus name of the old owner. |
|
The unique bus name of the new owner. |
|
user data set when the signal handler was connected. |