:right-sidebar: True DBusObjectSkeleton =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.30 .. class:: DBusObjectSkeleton(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.DBusObject` A ``GDBusObjectSkeleton`` instance is essentially a group of D-Bus interfaces. The set of exported interfaces on the object may be dynamic and change at runtime. This type is intended to be used with :obj:`~gi.repository.Gio.DBusObjectManager`. Constructors ------------ .. rst-class:: interim-class .. class:: DBusObjectSkeleton :no-index: .. classmethod:: new(object_path: str) -> ~gi.repository.Gio.DBusObjectSkeleton Creates a new :obj:`~gi.repository.Gio.DBusObjectSkeleton`. .. versionadded:: 2.30 :param object_path: An object path. Methods ------- .. rst-class:: interim-class .. class:: DBusObjectSkeleton :no-index: .. method:: add_interface(interface_: ~gi.repository.Gio.DBusInterfaceSkeleton) -> None Adds @``interface_`` to ``object``. If ``object`` already contains a :obj:`~gi.repository.Gio.DBusInterfaceSkeleton` with the same interface name, it is removed before @``interface_`` is added. Note that ``object`` takes its own reference on @``interface_`` and holds it until removed. .. versionadded:: 2.30 :param interface_: A :obj:`~gi.repository.Gio.DBusInterfaceSkeleton`. .. method:: flush() -> None This method simply calls :func:`~gi.repository.Gio.DBusInterfaceSkeleton.flush` on all interfaces belonging to ``object``. See that method for when flushing is useful. .. versionadded:: 2.30 .. method:: remove_interface(interface_: ~gi.repository.Gio.DBusInterfaceSkeleton) -> None Removes @``interface_`` from ``object``. .. versionadded:: 2.30 :param interface_: A :obj:`~gi.repository.Gio.DBusInterfaceSkeleton`. .. method:: remove_interface_by_name(interface_name: str) -> None Removes the :obj:`~gi.repository.Gio.DBusInterface` with ``interface_name`` from ``object``. If no D-Bus interface of the given interface exists, this function does nothing. .. versionadded:: 2.30 :param interface_name: A D-Bus interface name. .. method:: set_object_path(object_path: str) -> None Sets the object path for ``object``. .. versionadded:: 2.30 :param object_path: A valid D-Bus object path. Properties ---------- .. rst-class:: interim-class .. class:: DBusObjectSkeleton :no-index: .. attribute:: props.g_object_path :type: str The type of the None singleton. .. versionadded:: 2.30 Signals ------- .. rst-class:: interim-class .. class:: DBusObjectSkeleton.signals :no-index: .. method:: authorize_method(interface: ~gi.repository.Gio.DBusInterfaceSkeleton, invocation: ~gi.repository.Gio.DBusMethodInvocation) -> bool The type of the None singleton. .. versionadded:: 2.30 :param interface: The :obj:`~gi.repository.Gio.DBusInterfaceSkeleton` that ``invocation`` is for. :param invocation: A :obj:`~gi.repository.Gio.DBusMethodInvocation`. Virtual Methods --------------- .. rst-class:: interim-class .. class:: DBusObjectSkeleton :no-index: .. method:: do_authorize_method(interface_: ~gi.repository.Gio.DBusInterfaceSkeleton, invocation: ~gi.repository.Gio.DBusMethodInvocation) -> bool The type of the None singleton. :param interface_: :param invocation: Fields ------ .. rst-class:: interim-class .. class:: DBusObjectSkeleton :no-index: .. attribute:: parent_instance .. attribute:: priv