:right-sidebar: True DBusObject =================================================================== .. currentmodule:: gi.repository.Gio .. class:: DBusObject(*args, **kwargs) :no-contents-entry: Implementations: :class:`~gi.repository.Gio.DBusObjectProxy`, :class:`~gi.repository.Gio.DBusObjectSkeleton` The ``GDBusObject`` type is the base type for D-Bus objects on both the service side (see :obj:`~gi.repository.Gio.DBusObjectSkeleton`\) and the client side (see :obj:`~gi.repository.Gio.DBusObjectProxy`\). It is essentially just a container of interfaces. Methods ------- .. rst-class:: interim-class .. class:: DBusObject :no-index: .. method:: get_interface(interface_name: str) -> ~gi.repository.Gio.DBusInterface | None Gets the D-Bus interface with name ``interface_name`` associated with ``object``\, if any. .. versionadded:: 2.30 :param interface_name: A D-Bus interface name. .. method:: get_interfaces() -> list[~gi.repository.Gio.DBusInterface] Gets the D-Bus interfaces associated with ``object``\. .. versionadded:: 2.30 .. method:: get_object_path() -> str Gets the object path for ``object``\. .. versionadded:: 2.30 Signals ------- .. rst-class:: interim-class .. class:: DBusObject.signals :no-index: .. method:: interface_added(interface: ~gi.repository.Gio.DBusInterface) -> None The type of the None singleton. .. versionadded:: 2.30 :param interface: The :obj:`~gi.repository.Gio.DBusInterface` that was added. .. method:: interface_removed(interface: ~gi.repository.Gio.DBusInterface) -> None The type of the None singleton. .. versionadded:: 2.30 :param interface: The :obj:`~gi.repository.Gio.DBusInterface` that was removed. Virtual Methods --------------- .. rst-class:: interim-class .. class:: DBusObject :no-index: .. method:: do_get_interface(interface_name: str) -> ~gi.repository.Gio.DBusInterface | None Gets the D-Bus interface with name ``interface_name`` associated with ``object``\, if any. .. versionadded:: 2.30 :param interface_name: A D-Bus interface name. .. method:: do_get_interfaces() -> list[~gi.repository.Gio.DBusInterface] Gets the D-Bus interfaces associated with ``object``\. .. versionadded:: 2.30 .. method:: do_get_object_path() -> str Gets the object path for ``object``\. .. versionadded:: 2.30 .. method:: do_interface_added(interface_: ~gi.repository.Gio.DBusInterface) -> None The type of the None singleton. :param interface_: .. method:: do_interface_removed(interface_: ~gi.repository.Gio.DBusInterface) -> None The type of the None singleton. :param interface_: