accesskit_unix/atspi/interfaces/
application.rsuse accesskit_atspi_common::PlatformRoot;
use zbus::fdo;
use super::map_root_error;
pub(crate) struct ApplicationInterface(pub PlatformRoot);
#[dbus_interface(name = "org.a11y.atspi.Application")]
impl ApplicationInterface {
#[dbus_interface(property)]
fn toolkit_name(&self) -> fdo::Result<String> {
self.0.toolkit_name().map_err(map_root_error)
}
#[dbus_interface(property)]
fn version(&self) -> fdo::Result<String> {
self.0.toolkit_version().map_err(map_root_error)
}
#[dbus_interface(property)]
fn atspi_version(&self) -> &str {
"2.1"
}
#[dbus_interface(property)]
fn id(&self) -> fdo::Result<i32> {
self.0.id().map_err(map_root_error)
}
#[dbus_interface(property)]
fn set_id(&mut self, id: i32) -> fdo::Result<()> {
self.0.set_id(id).map_err(map_root_error)
}
}