//! # `DBus` interface proxy for: `org.a11y.atspi.Socket` //! //! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data. //! Source: `Socket.xml`. //! //! You may prefer to adapt it, instead of using it verbatim. //! //! More information can be found in the //! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html) //! section of the zbus documentation. //! use atspi_common::object_ref::ObjectRefOwned; #[zbus::proxy( interface = "org.a11y.atspi.Socket", default_path = "/org/a11y/atspi/accessible/root", default_service = "org.a11y.atspi.Registry" )] pub trait Socket { /// @plug: a string for the unique bus name of the application, and an object path /// for the application's' root object. /// /// This is the entry point for an application that wants to register itself against /// the accessibility registry. The application's root object, which it passes in /// @plug, must support the org.a11y.atspi.Application interface. /// /// When an application calls this method on the registry, the following handshake happens: /// /// * Application calls this method on the registry to identify itself. /// * The registry sets the "Id" property on the org.a11y.atspi.Application interface on the @plug object. /// * The Embed method returns with the bus name and object path for the registry's root object. /// Returns: the bus name and object path of the registry's root object. fn embed(&self, plug: &(&str, zbus::wire::ObjectPath<'_>)) -> zbus::Result; /// This method is called by a socket to inform the plug that it is being /// embedded. The plug should register the embedding socket as its parent. fn embedded(&self, path: zbus::wire::ObjectPath<'_>) -> zbus::Result<()>; /// Unembed method /// @plug: a string for the unique bus name of the application, and an object path /// for the application's' root object. /// /// Unregisters an application from the accesibility registry. It is not necessary to /// call this method; the accessibility registry detects when an application /// disconnects from the bus. fn unembed(&self, plug: &(&str, zbus::wire::ObjectPath<'_>)) -> zbus::Result<()>; }