wayle_notification/
wayle_proxy.rs1#![allow(missing_docs)]
3
4use zbus::{Result, proxy};
5
6#[proxy(
11 interface = "com.wayle.Notifications1",
12 default_service = "com.wayle.Notifications1",
13 default_path = "/com/wayle/Notifications",
14 gen_blocking = false
15)]
16pub trait WayleNotifications {
17 async fn dismiss_all(&self) -> Result<()>;
19
20 async fn dismiss(&self, id: u32) -> Result<()>;
22
23 async fn set_dnd(&self, enabled: bool) -> Result<()>;
25
26 async fn toggle_dnd(&self) -> Result<()>;
28
29 async fn set_popup_duration(&self, duration_ms: u32) -> Result<()>;
31
32 async fn list(&self) -> Result<Vec<(u32, String, String, String)>>;
36
37 #[zbus(property)]
39 fn dnd(&self) -> Result<bool>;
40
41 #[zbus(property)]
43 fn popup_duration(&self) -> Result<u32>;
44
45 #[zbus(property)]
47 fn count(&self) -> Result<u32>;
48
49 #[zbus(property)]
51 fn popup_count(&self) -> Result<u32>;
52}