Skip to content

Gio.DBusObject

interface

The GDBusObject type is the base type for D-Bus objects on both the service side (see DBusObjectSkeleton) and the client side (see DBusObjectProxy). It is essentially just a container of interfaces.

Methods

get_interface

def get_interface(self, interface_name: str) -> DBusInterface | None

Gets the D-Bus interface with name interface_name associated with object, if any.

Parameters:

  • interface_name — A D-Bus interface name.

get_interfaces

def get_interfaces(self) -> list[DBusInterface]

Gets the D-Bus interfaces associated with object.

get_object_path

def get_object_path(self) -> str

Gets the object path for object.

Virtual methods

do_get_interface

def do_get_interface(self, interface_name: str) -> DBusInterface | None

Gets the D-Bus interface with name interface_name associated with object, if any.

Parameters:

  • interface_name — A D-Bus interface name.

do_get_interfaces

def do_get_interfaces(self) -> list[DBusInterface]

Gets the D-Bus interfaces associated with object.

do_get_object_path

def do_get_object_path(self) -> str

Gets the object path for object.

do_interface_added

def do_interface_added(self, interface_: DBusInterface) -> None

Signal handler for the DBusObject::interface-added signal.

do_interface_removed

def do_interface_removed(self, interface_: DBusInterface) -> None

Signal handler for the DBusObject::interface-removed signal.

Signals

interface-added

def on_interface_added(self, interface: DBusInterface) -> None: ...

Emitted when interface is added to object.

interface-removed

def on_interface_removed(self, interface: DBusInterface) -> None: ...

Emitted when interface is removed from object.