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 withobject
, 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.
Signals
- class DBusObject.signals
- interface_added(interface: DBusInterface) None
The type of the None singleton.
Added in version 2.30.
- Parameters:
interface – The
DBusInterface
that was added.
- interface_removed(interface: DBusInterface) None
The type of the None singleton.
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 withobject
, 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_interface_added(interface_: DBusInterface) None
The type of the None singleton.
- Parameters:
interface
- do_interface_removed(interface_: DBusInterface) None
The type of the None singleton.
- Parameters:
interface