steamos-manager/steamos-manager-proxy/src/screenreader0.rs

68 lines
2.2 KiB
Rust

//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.ScreenReader0`
//!
//! This code was generated by `zbus-xmlgen` `5.1.0` from D-Bus introspection data.
//! Source: `com.steampowered.SteamOSManager1.xml`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! More information can be found in the [Writing a client proxy] section of the zbus
//! documentation.
//!
//!
//! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html
//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
use zbus::proxy;
#[proxy(
interface = "com.steampowered.SteamOSManager1.ScreenReader0",
default_service = "com.steampowered.SteamOSManager1",
default_path = "/com/steampowered/SteamOSManager1",
assume_defaults = true
)]
pub trait ScreenReader0 {
/// TriggerAction method
fn trigger_action(&self, action: u32, timestamp: u64) -> zbus::Result<()>;
/// Enabled property
#[zbus(property)]
fn enabled(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn set_enabled(&self, value: bool) -> zbus::Result<()>;
/// Mode property
#[zbus(property)]
fn mode(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn set_mode(&self, value: u32) -> zbus::Result<()>;
/// Pitch property
#[zbus(property)]
fn pitch(&self) -> zbus::Result<f64>;
#[zbus(property)]
fn set_pitch(&self, value: f64) -> zbus::Result<()>;
/// Rate property
#[zbus(property)]
fn rate(&self) -> zbus::Result<f64>;
#[zbus(property)]
fn set_rate(&self, value: f64) -> zbus::Result<()>;
/// Voice property
#[zbus(property)]
fn voice(&self) -> zbus::Result<String>;
#[zbus(property)]
fn set_voice(&self, value: &str) -> zbus::Result<()>;
/// VoiceLocales property
#[zbus(property)]
fn voice_locales(&self) -> zbus::Result<Vec<String>>;
/// VoicesForLocale property
#[zbus(property)]
fn voices_for_locale(&self) -> zbus::Result<std::collections::HashMap<String, Vec<String>>>;
/// Volume property
#[zbus(property)]
fn volume(&self) -> zbus::Result<f64>;
#[zbus(property)]
fn set_volume(&self, value: f64) -> zbus::Result<()>;
}