stray/dbus/
notifier_watcher_proxy.rs1use zbus::dbus_proxy;
14
15#[dbus_proxy(
16 interface = "org.kde.StatusNotifierWatcher",
17 default_path = "/StatusNotifierWatcher"
18)]
19pub(crate) trait StatusNotifierWatcher {
20 fn register_status_notifier_host(&self, service: &str) -> zbus::Result<()>;
21
22 fn unregister_status_notifier_item(&self, service: &str) -> zbus::Result<()>;
23
24 fn register_status_notifier_item(&self, service: &str) -> zbus::Result<()>;
25
26 #[dbus_proxy(signal)]
27 fn status_notifier_host_registered(&self) -> zbus::Result<()>;
28
29 #[dbus_proxy(signal)]
30 fn status_notifier_host_unregistered(&self) -> zbus::Result<()>;
31
32 #[dbus_proxy(signal)]
33 fn status_notifier_item_registered(&self, service: &str) -> zbus::Result<()>;
34
35 #[dbus_proxy(signal)]
36 fn status_notifier_item_unregistered(&self, service: &str) -> zbus::Result<()>;
37
38 #[dbus_proxy(property)]
39 fn is_status_notifier_host_registered(&self) -> zbus::Result<bool>;
40
41 #[dbus_proxy(property)]
42 fn protocol_version(&self) -> zbus::Result<i32>;
43
44 #[dbus_proxy(property)]
45 fn registered_status_notifier_items(&self) -> zbus::Result<Vec<String>>;
46}