| 1 | //! # `DBus` interface proxies for: `org.a11y.Status`, `org.a11y.Bus` |
| 2 | //! |
| 3 | //! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data. |
| 4 | //! Source: `Interface '/org/a11y/bus' from service 'org.a11y.Bus' on session bus`. |
| 5 | //! |
| 6 | //! You may prefer to adapt it, instead of using it verbatim. |
| 7 | //! |
| 8 | //! More information can be found in the |
| 9 | //! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html) |
| 10 | //! section of the zbus documentation. |
| 11 | //! |
| 12 | //! This `DBus` object implements |
| 13 | //! [standard `DBus` interfaces](https://dbus.freedesktop.org/doc/dbus-specification.html), |
| 14 | //! (`org.freedesktop.DBus.*`) for which the following zbus proxies can be used: |
| 15 | //! |
| 16 | //! * [`zbus::fdo::PropertiesProxy`] |
| 17 | //! * [`zbus::fdo::IntrospectableProxy`] |
| 18 | //! * [`zbus::fdo::PeerProxy`] |
| 19 | //! |
| 20 | //! …consequently `zbus-xmlgen` did not generate code for the above interfaces. |
| 21 | |
| 22 | #[zbus::proxy ( |
| 23 | interface = "org.a11y.Status" , |
| 24 | default_service = "org.a11y.Bus" , |
| 25 | default_path = "/org/a11y/bus" |
| 26 | )] |
| 27 | trait Status { |
| 28 | /// IsEnabled property |
| 29 | #[zbus(property)] |
| 30 | fn is_enabled(&self) -> zbus::Result<bool>; |
| 31 | #[zbus(property)] |
| 32 | fn set_is_enabled(&self, value: bool) -> zbus::Result<()>; |
| 33 | |
| 34 | /// ScreenReaderEnabled property |
| 35 | #[zbus(property)] |
| 36 | fn screen_reader_enabled(&self) -> zbus::Result<bool>; |
| 37 | #[zbus(property)] |
| 38 | fn set_screen_reader_enabled(&self, value: bool) -> zbus::Result<()>; |
| 39 | } |
| 40 | |
| 41 | #[zbus::proxy ( |
| 42 | interface = "org.a11y.Bus" , |
| 43 | default_service = "org.a11y.Bus" , |
| 44 | default_path = "/org/a11y/bus" |
| 45 | )] |
| 46 | trait Bus { |
| 47 | /// GetAddress method |
| 48 | fn get_address(&self) -> zbus::Result<String>; |
| 49 | } |
| 50 | |