DBusObject

class DBusObject(*args, **kwargs)

Implementations: DBusObjectProxy, DBusObjectSkeleton

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

class DBusObject
get_interface(interface_name: str) DBusInterface | None

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

Added in version 2.30.

Parameters:

interface_name – A D-Bus interface name.

get_interfaces() list[DBusInterface]

Gets the D-Bus interfaces associated with object.

Added in version 2.30.

get_object_path() str

Gets the object path for object.

Added in version 2.30.

Signals

class DBusObject.signals
interface_added(interface: DBusInterface) None

Emitted when interface is added to object.

Added in version 2.30.

Parameters:

interface – The DBusInterface that was added.

interface_removed(interface: DBusInterface) None

Emitted when interface is removed from object.

Added in version 2.30.

Parameters:

interface – The DBusInterface that was removed.

Virtual Methods

class DBusObject
do_get_interface(interface_name: str) DBusInterface | None

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

Added in version 2.30.

Parameters:

interface_name – A D-Bus interface name.

do_get_interfaces() list[DBusInterface]

Gets the D-Bus interfaces associated with object.

Added in version 2.30.

do_get_object_path() str

Gets the object path for object.

Added in version 2.30.

do_interface_added(interface_: DBusInterface) None

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

Parameters:

interface

do_interface_removed(interface_: DBusInterface) None

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

Parameters:

interface