:right-sidebar: True DBusInterface =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.30 .. class:: DBusInterface(*args, **kwargs) :no-contents-entry: Implementations: :class:`~gi.repository.Gio.DBusInterfaceSkeleton`, :class:`~gi.repository.Gio.DBusProxy` Base type for D-Bus interfaces. The ``GDBusInterface`` type is the base type for D-Bus interfaces both on the service side (see :obj:`~gi.repository.Gio.DBusInterfaceSkeleton`) and client side (see :obj:`~gi.repository.Gio.DBusProxy`). Methods ------- .. rst-class:: interim-class .. class:: DBusInterface :no-index: .. method:: get_info() -> ~gi.repository.Gio.DBusInterfaceInfo Gets D-Bus introspection information for the D-Bus interface implemented by @``interface_.`` .. versionadded:: 2.30 .. method:: get_object() -> ~gi.repository.Gio.DBusObject | None Gets the :obj:`~gi.repository.Gio.DBusObject` that @``interface_`` belongs to, if any. It is not safe to use the returned object if @``interface_`` or the returned object is being used from other threads. See :func:`~gi.repository.Gio.DBusInterface.dup_object` for a thread-safe alternative. .. versionadded:: 2.30 .. method:: set_object(object: ~gi.repository.Gio.DBusObject | None = None) -> None Sets the :obj:`~gi.repository.Gio.DBusObject` for @``interface_`` to ``object``. Note that @``interface_`` will hold a weak reference to ``object``. .. versionadded:: 2.30 :param object: A :obj:`~gi.repository.Gio.DBusObject` or :const:`None`. Virtual Methods --------------- .. rst-class:: interim-class .. class:: DBusInterface :no-index: .. method:: do_dup_object() -> ~gi.repository.Gio.DBusObject | None Gets the :obj:`~gi.repository.Gio.DBusObject` that @``interface_`` belongs to, if any. .. versionadded:: 2.32 .. method:: do_get_info() -> ~gi.repository.Gio.DBusInterfaceInfo Gets D-Bus introspection information for the D-Bus interface implemented by @``interface_.`` .. versionadded:: 2.30 .. method:: do_set_object(object: ~gi.repository.Gio.DBusObject | None = None) -> None Sets the :obj:`~gi.repository.Gio.DBusObject` for @``interface_`` to ``object``. Note that @``interface_`` will hold a weak reference to ``object``. .. versionadded:: 2.30 :param object: A :obj:`~gi.repository.Gio.DBusObject` or :const:`None`.