| 1 | //! # `DBus` interface proxy for: `org.a11y.atspi.Collection` |
| 2 | //! |
| 3 | //! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data. |
| 4 | //! Source: `Collection.xml`. |
| 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 | #![allow (clippy::too_many_arguments)] |
| 13 | // this allow zbus to change the number of parameters in a function without setting off clippy |
| 14 | |
| 15 | use crate::common::{MatchArgs, ObjectRef, SortOrder, TreeTraversalType}; |
| 16 | |
| 17 | #[zbus::proxy (interface = "org.a11y.atspi.Collection" , assume_defaults = true)] |
| 18 | trait Collection { |
| 19 | /// GetActiveDescendant method |
| 20 | fn get_active_descendant(&self) -> zbus::Result<ObjectRef>; |
| 21 | |
| 22 | /* ROLE fields: |
| 23 | &[i32]: AtspiStateSet, |
| 24 | i32: AtspiCollectionMatchType, |
| 25 | HashMap<&str, &str>: attributes, |
| 26 | i32: AtspiCollectionMatchType (attribute match type), |
| 27 | &[i32]: roles, |
| 28 | i32: AtspiCollectionMatchType (role match type), |
| 29 | &[&str]: interfaces, |
| 30 | i32: AtspiCollectionMatchType (interface match type), |
| 31 | bool: invert |
| 32 | */ |
| 33 | /// GetMatches method |
| 34 | fn get_matches( |
| 35 | &self, |
| 36 | rule: &MatchArgs<'_>, |
| 37 | sortby: SortOrder, |
| 38 | count: i32, |
| 39 | traverse: bool, |
| 40 | ) -> zbus::Result<Vec<ObjectRef>>; |
| 41 | |
| 42 | /// GetMatchesFrom method |
| 43 | fn get_matches_from( |
| 44 | &self, |
| 45 | current_object: &zbus::zvariant::ObjectPath<'_>, |
| 46 | rule: &MatchArgs<'_>, |
| 47 | sortby: SortOrder, |
| 48 | tree: TreeTraversalType, |
| 49 | count: i32, |
| 50 | traverse: bool, |
| 51 | ) -> zbus::Result<Vec<ObjectRef>>; |
| 52 | |
| 53 | /// GetMatchesTo method |
| 54 | fn get_matches_to( |
| 55 | &self, |
| 56 | current_object: &zbus::zvariant::ObjectPath<'_>, |
| 57 | rule: &MatchArgs<'_>, |
| 58 | sortby: SortOrder, |
| 59 | tree: TreeTraversalType, |
| 60 | limit_scope: bool, |
| 61 | count: i32, |
| 62 | traverse: bool, |
| 63 | ) -> zbus::Result<Vec<ObjectRef>>; |
| 64 | } |
| 65 | |