screenreader: add screen reader commands to steamosctl.

Adds get-screen-reader-enabled, set-screen-reader-enabled,
get-screen-reader-(pitch|rate|volume),
set-screen-reader-(pitch|rate|volume).
This commit is contained in:
Jeremy Whiting 2025-05-28 13:25:50 -06:00
parent d6d8b0e336
commit cff6303b6c
3 changed files with 122 additions and 3 deletions

View file

@ -25,6 +25,7 @@ mod hdmi_cec1;
mod low_power_mode1;
mod manager2;
mod performance_profile1;
mod screenreader0;
mod storage1;
mod tdp_limit1;
mod update_bios1;
@ -43,6 +44,7 @@ pub use crate::proxy::hdmi_cec1::HdmiCec1Proxy;
pub use crate::proxy::low_power_mode1::LowPowerMode1Proxy;
pub use crate::proxy::manager2::Manager2Proxy;
pub use crate::proxy::performance_profile1::PerformanceProfile1Proxy;
pub use crate::proxy::screenreader0::ScreenReader0Proxy;
pub use crate::proxy::storage1::Storage1Proxy;
pub use crate::proxy::tdp_limit1::TdpLimit1Proxy;
pub use crate::proxy::update_bios1::UpdateBios1Proxy;

View file

@ -0,0 +1,45 @@
//! # 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 {
/// Enabled property
#[zbus(property)]
fn enabled(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn set_enabled(&self, value: bool) -> 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<()>;
/// Volume property
#[zbus(property)]
fn volume(&self) -> zbus::Result<f64>;
#[zbus(property)]
fn set_volume(&self, value: f64) -> zbus::Result<()>;
}