Top | ![]() |
![]() |
![]() |
![]() |
void | connected | Run Last |
void | disconnected | Run Last |
void | global-engine-changed | Run Last |
void | name-owner-changed | Run Last |
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 IBusBus instance.
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.
guint32 ibus_bus_request_name (IBusBus *bus
,const gchar *name
,guint32 flags
);
Request a name from IBus daemon synchronously.
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.
bus |
An IBusBus. |
|
name |
Name to be requested. |
|
flags |
Flags (FixMe). |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
guint ibus_bus_release_name (IBusBus *bus
,const gchar *name
);
Release a name to IBus daemon synchronously.
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.
bus |
An IBusBus. |
|
name |
Name to be released. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
GList * ibus_bus_list_queued_owners (IBusBus *bus
,const gchar *name
);
Lists the unique bus names of connections currently queued for a bus name.
FIXME add an asynchronous version.
The unique bus names of connections currently queued for name
.
[transfer full][element-type utf8]
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.
bus |
An IBusBus. |
|
name |
Name to be checked. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
GList *
ibus_bus_list_names (IBusBus *bus
);
Return lists that attached to bus
.
[FixMe] Not implemented yet, only return NULL.
[FixMe] Add async version.
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.
bus |
An IBusBus. |
|
rule |
Match rule. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
rule |
Match rule. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
name |
Name. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
restart |
Whether restarting the ibus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
IBusInputContext * ibus_bus_create_input_context (IBusBus *bus
,const gchar *client_name
);
Create an input context for client synchronously.
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.
bus |
An IBusBus. |
|
client_name |
Name of client. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied.
It should not be |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
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.
bus |
An IBusBus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
component |
A input engine component. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
void ibus_bus_list_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
List engines asynchronously.
bus |
An IBusBus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
GList *
ibus_bus_list_active_engines (IBusBus *bus
);
List active engines synchronously.
void ibus_bus_list_active_engines_async (IBusBus *bus
,gint timeout_msec
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
List active engines asynchronously.
bus |
An IBusBus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
gboolean
ibus_bus_get_use_global_engine (IBusBus *bus
);
Check if the bus's "use_global_engine" option is enabled or not synchronously.
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.
bus |
An IBusBus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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.
bus |
An IBusBus. |
|
global_engine |
A new engine name. |
|
timeout_msec |
The timeout in milliseconds or -1 to use the default timeout. |
|
cancellable |
A GCancellable or |
|
callback |
A GAsyncReadyCallback to call when the request is satisfied
or |
|
user_data |
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()
.
bus |
An IBusBus. |
|
res |
A GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
void ibus_bus_set_watch_dbus_signal (IBusBus *bus
,gboolean watch
);
Start or stop watching the NameOwnerChanged DBus signal.
bus |
An IBusBus. |
|
watch |
|
void ibus_bus_set_watch_ibus_signal (IBusBus *bus
,gboolean watch
);
Start or stop watching the GlobalEngineChanged IBus signal.
bus |
An IBusBus. |
|
watch |
|
IBusConfig *
ibus_bus_get_config (IBusBus *bus
);
Get the config instance from IBusBus.
“connected”
signalvoid user_function (IBusBus *bus, gpointer user_data)
Emitted when IBusBus is connected to ibus-daemon.
bus |
The IBusBus object which recevied the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“disconnected”
signalvoid user_function (IBusBus *bus, gpointer user_data)
Emitted when IBusBus is disconnected from ibus-daemon.
bus |
The IBusBus object which recevied the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“global-engine-changed”
signalvoid user_function (IBusBus *bus, gchar *name, gpointer user_data)
Emitted when global engine is changed.
bus |
The IBusBus object which recevied the signal |
|
name |
The name of the new global engine. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“name-owner-changed”
signalvoid user_function (IBusBus *bus, gchar *name, gchar *old_owner, gchar *new_owner, gpointer user_data)
Emitted when D-Bus name owner is changed.
bus |
The IBusBus object which recevied the signal |
|
name |
The name which ower is changed. |
|
old_owner |
The unique bus name of the old owner. |
|
new_owner |
The unique bus name of the new owner. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last