IBus Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct IBusService; struct IBusServiceClass; IBusService * ibus_service_new (GDBusConnection *connection
,const gchar *path
); const gchar * ibus_service_get_object_path (IBusService *service
); GDBusConnection * ibus_service_get_connection (IBusService *service
); gboolean ibus_service_register (IBusService *service
,GDBusConnection *connection
,GError **error
); void ibus_service_unregister (IBusService *service
,GDBusConnection *connection
); gboolean ibus_service_emit_signal (IBusService *service
,const gchar *dest_bus_name
,const gchar *interface_name
,const gchar *signal_name
,GVariant *parameters
,GError **error
); gboolean ibus_service_class_add_interfaces (IBusServiceClass *klass
,const gchar *xml_data
);
GObject +----GInitiallyUnowned +----IBusObject +----IBusService +----IBusFactory +----IBusConfigService +----IBusEngine +----IBusPanelService
struct IBusServiceClass { /* virtual functions */ void (* service_method_call) (IBusService *service, GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation); GVariant * (* service_get_property) (IBusService *service, GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error); gboolean (* service_set_property) (IBusService *service, GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GVariant *value, GError **error); };
IBusService * ibus_service_new (GDBusConnection *connection
,const gchar *path
);
New an IBusService.
|
Object path. |
Returns : |
A newly allocated IBusService |
const gchar * ibus_service_get_object_path (IBusService *service
);
Returns the object path of an IBusService.
|
An IBusService. |
Returns : |
The object path of service
|
GDBusConnection * ibus_service_get_connection (IBusService *service
);
Returns a connections.
|
An IBusService. |
Returns : |
A GDBusConnection of an IBusService instance. [transfer none] |
gboolean ibus_service_register (IBusService *service
,GDBusConnection *connection
,GError **error
);
Registers service to a connection.
|
An IBusService. |
|
A GDBusConnection the service will be registered to. |
|
Return location for error or NULL. |
Returns : |
TRUE if the service was registered, FALSE otherwise. |
void ibus_service_unregister (IBusService *service
,GDBusConnection *connection
);
Unregisters service from a connection.
|
An IBusService. |
|
A GDBusConnection the service was registered with. |
gboolean ibus_service_emit_signal (IBusService *service
,const gchar *dest_bus_name
,const gchar *interface_name
,const gchar *signal_name
,GVariant *parameters
,GError **error
);
gboolean ibus_service_class_add_interfaces (IBusServiceClass *klass
,const gchar *xml_data
);
Set the interface introspection information with the service class.
|
An IBusServiceClass. |
|
The introspection xml data. |