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 at object_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 at object_path, if any.

Added in version 2.30.

Parameters:

object_path – Object path to look up.

get_object_path() str

Gets the object path that manager is for.

Added in version 2.30.

get_objects() list[DBusObject]

Gets all DBusObject objects known to manager.

Added in version 2.30.

Signals

class DBusObjectManager.signals
interface_added(object: DBusObject, interface: DBusInterface) None

Emitted when interface is added to object.

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:
interface_removed(object: DBusObject, interface: DBusInterface) None

Emitted when interface has been removed from object.

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_added(object: DBusObject) None

Emitted when object is added to manager.

Added in version 2.30.

Parameters:

object – The DBusObject that was added.

object_removed(object: DBusObject) None

Emitted when object is removed from manager.

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 at object_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 at object_path, if any.

Added in version 2.30.

Parameters:

object_path – Object path to look up.

do_get_object_path() str

Gets the object path that manager is for.

Added in version 2.30.

do_get_objects() list[DBusObject]

Gets all DBusObject objects known to manager.

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