:right-sidebar: True DBusInterfaceSkeleton =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.30 .. class:: DBusInterfaceSkeleton(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.DBusInterface` Abstract base class for D-Bus interfaces on the service side. Methods ------- .. rst-class:: interim-class .. class:: DBusInterfaceSkeleton :no-index: .. method:: do_flush(self) -> None .. method:: do_g_authorize_method(self, invocation: ~gi.repository.Gio.DBusMethodInvocation) -> bool :param invocation: .. method:: do_get_info(self) -> ~gi.repository.Gio.DBusInterfaceInfo .. method:: do_get_properties(self) -> ~gi.repository.GLib.Variant .. method:: do_get_vtable(self) -> ~gi.repository.Gio.DBusInterfaceVTable .. method:: export(connection: ~gi.repository.Gio.DBusConnection, object_path: str) -> bool Exports ``interface_`` at ``object_path`` on ``connection``\. This can be called multiple times to export the same ``interface_`` onto multiple connections however the ``object_path`` provided must be the same for all connections. Use :func:`~gi.repository.Gio.DBusInterfaceSkeleton.unexport` to unexport the object. .. versionadded:: 2.30 :param connection: A :obj:`~gi.repository.Gio.DBusConnection` to export ``interface_`` on. :param object_path: The path to export the interface at. .. method:: flush() -> None If ``interface_`` has outstanding changes, request for these changes to be emitted immediately. For example, an exported D-Bus interface may queue up property changes and emit the ``org.freedesktop.DBus.Properties.PropertiesChanged`` signal later (e.g. in an idle handler). This technique is useful for collapsing multiple property changes into one. .. versionadded:: 2.30 .. method:: get_connection() -> ~gi.repository.Gio.DBusConnection | None Gets the first connection that ``interface_`` is exported on, if any. .. versionadded:: 2.30 .. method:: get_connections() -> list[~gi.repository.Gio.DBusConnection] Gets a list of the connections that ``interface_`` is exported on. .. versionadded:: 2.32 .. method:: get_flags() -> ~gi.repository.Gio.DBusInterfaceSkeletonFlags Gets the :obj:`~gi.repository.Gio.DBusInterfaceSkeletonFlags` that describes what the behavior of ``interface_`` .. versionadded:: 2.30 .. 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_path() -> str | None Gets the object path that ``interface_`` is exported on, if any. .. versionadded:: 2.30 .. method:: get_properties() -> ~gi.repository.GLib.Variant Gets all D-Bus properties for ``interface_``\. .. versionadded:: 2.30 .. method:: get_vtable() -> ~gi.repository.Gio.DBusInterfaceVTable Gets the interface vtable for the D-Bus interface implemented by ``interface_``\. The returned function pointers should expect ``interface_`` itself to be passed as ``user_data``\. .. versionadded:: 2.30 .. method:: has_connection(connection: ~gi.repository.Gio.DBusConnection) -> bool Checks if ``interface_`` is exported on ``connection``\. .. versionadded:: 2.32 :param connection: A :obj:`~gi.repository.Gio.DBusConnection`\. .. method:: set_flags(flags: ~gi.repository.Gio.DBusInterfaceSkeletonFlags) -> None Sets flags describing what the behavior of ``skeleton`` should be. .. versionadded:: 2.30 :param flags: Flags from the :obj:`~gi.repository.Gio.DBusInterfaceSkeletonFlags` enumeration. .. method:: unexport() -> None Stops exporting ``interface_`` on all connections it is exported on. To unexport ``interface_`` from only a single connection, use :func:`~gi.repository.Gio.DBusInterfaceSkeleton.unexport_from_connection` .. versionadded:: 2.30 .. method:: unexport_from_connection(connection: ~gi.repository.Gio.DBusConnection) -> None Stops exporting ``interface_`` on ``connection``\. To stop exporting on all connections the interface is exported on, use :func:`~gi.repository.Gio.DBusInterfaceSkeleton.unexport`. .. versionadded:: 2.32 :param connection: A :obj:`~gi.repository.Gio.DBusConnection`\. Properties ---------- .. rst-class:: interim-class .. class:: DBusInterfaceSkeleton :no-index: .. attribute:: props.g_flags :type: ~gi.repository.Gio.DBusInterfaceSkeletonFlags The type of the None singleton. .. versionadded:: 2.30 Signals ------- .. rst-class:: interim-class .. class:: DBusInterfaceSkeleton.signals :no-index: .. method:: g_authorize_method(invocation: ~gi.repository.Gio.DBusMethodInvocation) -> bool The type of the None singleton. .. versionadded:: 2.30 :param invocation: A :obj:`~gi.repository.Gio.DBusMethodInvocation`\. Virtual Methods --------------- .. rst-class:: interim-class .. class:: DBusInterfaceSkeleton :no-index: .. method:: do_flush() -> None If ``interface_`` has outstanding changes, request for these changes to be emitted immediately. For example, an exported D-Bus interface may queue up property changes and emit the ``org.freedesktop.DBus.Properties.PropertiesChanged`` signal later (e.g. in an idle handler). This technique is useful for collapsing multiple property changes into one. .. versionadded:: 2.30 .. method:: do_g_authorize_method(invocation: ~gi.repository.Gio.DBusMethodInvocation) -> bool The type of the None singleton. :param invocation: .. 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_get_properties() -> ~gi.repository.GLib.Variant Gets all D-Bus properties for ``interface_``\. .. versionadded:: 2.30 .. method:: do_get_vtable() -> ~gi.repository.Gio.DBusInterfaceVTable Gets the interface vtable for the D-Bus interface implemented by ``interface_``\. The returned function pointers should expect ``interface_`` itself to be passed as ``user_data``\. .. versionadded:: 2.30 Fields ------ .. rst-class:: interim-class .. class:: DBusInterfaceSkeleton :no-index: .. attribute:: parent_instance .. attribute:: priv