DBusObjectManager
- class DBusObjectManager(*args, **kwargs)
Implementations: DBusObjectManagerClient
, DBusObjectManagerServer
The GDBusObjectManager
type is the base type for service- and
client-side implementations of the standardized
`org.freedesktop.DBus.ObjectManager
<http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager>`_
interface.
See DBusObjectManagerClient
for the client-side implementation
and DBusObjectManagerServer
for the service-side implementation.
Methods
- class DBusObjectManager
- get_interface(object_path: str, interface_name: str) DBusInterface | None
Gets the interface proxy for
interface_name
atobject_path
, if any.Added in version 2.30.
- Parameters:
object_path – Object path to look up.
interface_name – D-Bus interface name to look up.
- get_object(object_path: str) DBusObject | None
Gets the
DBusObject
atobject_path
, if any.Added in version 2.30.
- Parameters:
object_path – Object path to look up.
- get_objects() list[DBusObject]
Gets all
DBusObject
objects known tomanager
.Added in version 2.30.
Signals
- class DBusObjectManager.signals
- interface_added(object: DBusObject, interface: DBusInterface) None
Emitted when
interface
is added toobject
.This signal exists purely as a convenience to avoid having to connect signals to all objects managed by
manager
.Added in version 2.30.
- Parameters:
object – The
DBusObject
on which an interface was added.interface – The
DBusInterface
that was added.
- interface_removed(object: DBusObject, interface: DBusInterface) None
Emitted when
interface
has been removed fromobject
.This signal exists purely as a convenience to avoid having to connect signals to all objects managed by
manager
.Added in version 2.30.
- Parameters:
object – The
DBusObject
on which an interface was removed.interface – The
DBusInterface
that was removed.
- object_added(object: DBusObject) None
Emitted when
object
is added tomanager
.Added in version 2.30.
- Parameters:
object – The
DBusObject
that was added.
- object_removed(object: DBusObject) None
Emitted when
object
is removed frommanager
.Added in version 2.30.
- Parameters:
object – The
DBusObject
that was removed.
Virtual Methods
- class DBusObjectManager
- do_get_interface(object_path: str, interface_name: str) DBusInterface | None
Gets the interface proxy for
interface_name
atobject_path
, if any.Added in version 2.30.
- Parameters:
object_path – Object path to look up.
interface_name – D-Bus interface name to look up.
- do_get_object(object_path: str) DBusObject | None
Gets the
DBusObject
atobject_path
, if any.Added in version 2.30.
- Parameters:
object_path – Object path to look up.
- do_get_objects() list[DBusObject]
Gets all
DBusObject
objects known tomanager
.Added in version 2.30.
- do_interface_added(object: DBusObject, interface_: DBusInterface) None
Signal handler for the
DBusObjectManager
::interface-added signal.- Parameters:
object
interface
- do_interface_removed(object: DBusObject, interface_: DBusInterface) None
Signal handler for the
DBusObjectManager
::interface-removed signal.- Parameters:
object
interface
- do_object_added(object: DBusObject) None
Signal handler for the
DBusObjectManager
::object-added signal.- Parameters:
object
- do_object_removed(object: DBusObject) None
Signal handler for the
DBusObjectManager
::object-removed signal.- Parameters:
object