IBus.Service¶
- Subclasses:
IBus.ConfigService
,IBus.Engine
,IBus.Factory
,IBus.PanelService
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The connection of service object |
||
r/w/co |
The path of service object |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class IBus.Service(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.Service
is a base class for services.- classmethod add_interfaces(xml_data)¶
- Parameters:
xml_data (
str
) – The introspection xml data.- Returns:
True
if xml_data is valid and succeeded to be added;False
otherwise.- Return type:
Set the interface introspection information with the service class.
- classmethod free_interfaces(depth)¶
- Parameters:
depth (
int
) – The number of D-Bus introspection interfaces.- Returns:
The actual freed number of the introspection interfaces if depth is not 0. If depth is 0, the total number of the introspection interfaces is returned but any interfaces are not freed.
- Return type:
Free the first depth interfaces if depth is positive. Free the last -depth interfaces if depth is negative.
- classmethod new(connection, path)¶
- Parameters:
connection (
Gio.DBusConnection
) – AGio.DBusConnection
.path (
str
) – Object path.
- Returns:
A newly allocated
IBus.Service
- Return type:
Creantes a new
IBus.Service
.
- emit_signal(dest_bus_name, interface_name, signal_name, parameters)¶
- Parameters:
dest_bus_name (
str
) –interface_name (
str
) –signal_name (
str
) –parameters (
GLib.Variant
) –
- Raises:
- Return type:
- get_connection()¶
- Returns:
A
Gio.DBusConnection
of anIBus.Service
instance.- Return type:
Gets a connections.
- get_object_path()¶
- Returns:
The object path of self
- Return type:
Gets the object path of an
IBus.Service
.
- register(connection)¶
- Parameters:
connection (
Gio.DBusConnection
) – AGio.DBusConnection
the service will be registered to.- Raises:
- Returns:
- Return type:
Registers service to a connection.
- unregister(connection)¶
- Parameters:
connection (
Gio.DBusConnection
) – AGio.DBusConnection
the service was registered with.
Unregisters service from a connection.
- do_service_get_property(connection, sender, object_path, interface_name, property_name) virtual¶
- Parameters:
connection (
Gio.DBusConnection
) – A dbus connection.sender (
str
) – A sender.object_path (
str
) – An object path.interface_name (
str
) – An interface name.property_name (
str
) – A property name.
- Returns:
A variant.
- Return type:
GLib.Variant
orNone
The ::service_get_property class method is to connect
Gio.DBusInterfaceGetPropertyFunc
().
- do_service_method_call(connection, sender, object_path, interface_name, method_name, parameters, invocation) virtual¶
- Parameters:
connection (
Gio.DBusConnection
) – A dbus connection.sender (
str
) – A sender.object_path (
str
) – An object path.interface_name (
str
) – An interface name.method_name (
str
) – A method name.parameters (
GLib.Variant
) – A parameters.invocation (
Gio.DBusMethodInvocation
) – A dbus method invocation.
The ::service_method_call class method is to connect
Gio.DBusInterfaceMethodCallFunc
().
- do_service_set_property(connection, sender, object_path, interface_name, property_name, value) virtual¶
- Parameters:
connection (
Gio.DBusConnection
) – A dbus connection.sender (
str
) – A sender.object_path (
str
) – An object path.interface_name (
str
) – An interface name.property_name (
str
) – An property name.value (
GLib.Variant
) – An property value.
- Returns:
- Return type:
The ::service_set_property class method is to connect
Gio.DBusInterfaceSetPropertyFunc
().
Property Details¶
- IBus.Service.props.connection¶
- Name:
connection
- Type:
- Default Value:
- Flags:
The connection of service object.