Gio.DBusObject¶
| Implementations: | |
|---|---|
Gio.DBusObjectProxy, Gio.DBusObjectSkeleton |
|
Methods¶
get_interface (interface_name) |
|
get_interfaces () |
|
get_object_path () |
Virtual Methods¶
do_get_interface (interface_name) |
|
do_get_interfaces () |
|
do_get_object_path () |
|
do_interface_added (interface_) |
|
do_interface_removed (interface_) |
Properties¶
None
Signals¶
| Name | Short Description |
|---|---|
interface-added |
Emitted when interface is added to object. |
interface-removed |
Emitted when interface is removed from object. |
Fields¶
None
Class Details¶
-
class
Gio.DBusObject¶ Bases: GObject.GInterfaceStructure: Gio.DBusObjectIfaceThe
Gio.DBusObjecttype is the base type for D-Bus objects on both the service side (seeGio.DBusObjectSkeleton) and the client side (seeGio.DBusObjectProxy). It is essentially just a container of interfaces.-
get_interface(interface_name)[source]¶ Parameters: interface_name ( str) – A D-Bus interface name.Returns: Noneif not found, otherwise aGio.DBusInterfacethat must be freed withGObject.Object.unref().Return type: Gio.DBusInterfaceGets the D-Bus interface with name interface_name associated with self, if any.
New in version 2.30.
-
get_interfaces()[source]¶ Returns: A list of Gio.DBusInterfaceinstances. The returned list must be freed by g_list_free() after each element has been freed withGObject.Object.unref().Return type: [ Gio.DBusInterface]Gets the D-Bus interfaces associated with self.
New in version 2.30.
-
get_object_path()[source]¶ Returns: A string owned by self. Do not free. Return type: strGets the object path for self.
New in version 2.30.
-
do_get_interface(interface_name) virtual¶ Parameters: interface_name ( str) – A D-Bus interface name.Returns: Noneif not found, otherwise aGio.DBusInterfacethat must be freed withGObject.Object.unref().Return type: Gio.DBusInterfaceGets the D-Bus interface with name interface_name associated with object, if any.
New in version 2.30.
-
do_get_interfaces() virtual¶ Returns: A list of Gio.DBusInterfaceinstances. The returned list must be freed by g_list_free() after each element has been freed withGObject.Object.unref().Return type: [ Gio.DBusInterface]Gets the D-Bus interfaces associated with object.
New in version 2.30.
-
do_get_object_path() virtual¶ Returns: A string owned by object. Do not free. Return type: strGets the object path for object.
New in version 2.30.
-
do_interface_added(interface_) virtual¶ Parameters: interface ( Gio.DBusInterface) –
-
do_interface_removed(interface_) virtual¶ Parameters: interface ( Gio.DBusInterface) –
-
Signal Details¶
-
Gio.DBusObject.signals.interface_added(d_bus_object, interface)¶ Signal Name: interface-addedFlags: Parameters: - d_bus_object (
Gio.DBusObject) – The object which received the signal - interface (
Gio.DBusInterface) – TheGio.DBusInterfacethat was added.
Emitted when interface is added to object.
New in version 2.30.
- d_bus_object (
-
Gio.DBusObject.signals.interface_removed(d_bus_object, interface)¶ Signal Name: interface-removedFlags: Parameters: - d_bus_object (
Gio.DBusObject) – The object which received the signal - interface (
Gio.DBusInterface) – TheGio.DBusInterfacethat was removed.
Emitted when interface is removed from object.
New in version 2.30.
- d_bus_object (