i3status_rs/blocks/music/zbus_playerctld.rs
1//! # DBus interface proxies for: `com.github.altdesktop.playerctld`
2//!
3//! This code was generated by `zbus-xmlgen` `3.1.0` from DBus introspection data.
4//! Source: `Service 'org.mpris.MediaPlayer2.playerctld' 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 = "com.github.altdesktop.playerctld",
24 default_service = "org.mpris.MediaPlayer2.playerctld",
25 default_path = "/org/mpris/MediaPlayer2"
26)]
27pub(super) trait Playerctld {
28 /// Shift method
29 fn shift(&self) -> zbus::Result<String>;
30
31 /// Unshift method
32 fn unshift(&self) -> zbus::Result<String>;
33
34 /// ActivePlayerChangeBegin signal
35 #[zbus(signal)]
36 fn active_player_change_begin(&self, name: &str) -> zbus::Result<()>;
37
38 /// ActivePlayerChangeEnd signal
39 #[zbus(signal)]
40 fn active_player_change_end(&self, name: &str) -> zbus::Result<()>;
41
42 /// PlayerNames property
43 #[zbus(property)]
44 fn player_names(&self) -> zbus::Result<Vec<String>>;
45}