summaryrefslogtreecommitdiffstats
path: root/src/dbus/cmd0.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-06-25 17:43:08 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-06-25 17:43:08 -0500
commit07038dc2c3221336e60d31f2b2bd2590c30e3ec7 (patch)
treeaf9bcd28a9fa2d129ffd603fc4f9e701f08e39fb /src/dbus/cmd0.rs
chore: initial commit
Diffstat (limited to 'src/dbus/cmd0.rs')
-rw-r--r--src/dbus/cmd0.rs87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/dbus/cmd0.rs b/src/dbus/cmd0.rs
new file mode 100644
index 0000000..ff222ad
--- /dev/null
+++ b/src/dbus/cmd0.rs
@@ -0,0 +1,87 @@
+//! # D-Bus interface proxy for: `org.dunstproject.cmd0`
+//!
+//! This code was generated by `zbus-xmlgen` `4.1.0` from D-Bus introspection data.
+//! Source: `Interface '/org/freedesktop/Notifications' from service 'org.freedesktop.Notifications' on system bus`.
+//!
+//! 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.
+//!
+//! This type implements the [D-Bus standard interfaces], (`org.freedesktop.DBus.*`) for which the
+//! following zbus API can be used:
+//!
+//! * [`zbus::fdo::PropertiesProxy`]
+//! * [`zbus::fdo::IntrospectableProxy`]
+//! * [`zbus::fdo::PeerProxy`]
+//!
+//! Consequently `zbus-xmlgen` did not generate code for the above interfaces.
+//!
+//! [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 = "org.dunstproject.cmd0",
+ default_service = "org.freedesktop.Notifications",
+ default_path = "/org/freedesktop/Notifications"
+)]
+trait cmd0 {
+ /// ContextMenuCall method
+ fn context_menu_call(&self) -> zbus::Result<()>;
+
+ /// NotificationAction method
+ fn notification_action(&self, number: u32) -> zbus::Result<()>;
+
+ /// NotificationClearHistory method
+ fn notification_clear_history(&self) -> zbus::Result<()>;
+
+ /// NotificationCloseAll method
+ fn notification_close_all(&self) -> zbus::Result<()>;
+
+ /// NotificationCloseLast method
+ fn notification_close_last(&self) -> zbus::Result<()>;
+
+ /// NotificationListHistory method
+ fn notification_list_history(
+ &self,
+ ) -> zbus::Result<Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>>;
+
+ /// NotificationPopHistory method
+ fn notification_pop_history(&self, id: u32) -> zbus::Result<()>;
+
+ /// NotificationRemoveFromHistory method
+ fn notification_remove_from_history(&self, id: u32) -> zbus::Result<()>;
+
+ /// NotificationShow method
+ fn notification_show(&self) -> zbus::Result<()>;
+
+ /// Ping method
+ fn ping(&self) -> zbus::Result<()>;
+
+ /// RuleEnable method
+ fn rule_enable(&self, name: &str, state: i32) -> zbus::Result<()>;
+
+ /// displayedLength property
+ #[zbus(property, name = "displayedLength")]
+ fn displayed_length(&self) -> zbus::Result<u32>;
+
+ /// historyLength property
+ #[zbus(property, name = "historyLength")]
+ fn history_length(&self) -> zbus::Result<u32>;
+
+ /// pauseLevel property
+ #[zbus(property, name = "pauseLevel")]
+ fn pause_level(&self) -> zbus::Result<u32>;
+ #[zbus(property, name = "pauseLevel")]
+ fn set_pause_level(&self, value: u32) -> zbus::Result<()>;
+
+ /// paused property
+ #[zbus(property, name = "paused")]
+ fn paused(&self) -> zbus::Result<bool>;
+ #[zbus(property, name = "paused")]
+ fn set_paused(&self, value: bool) -> zbus::Result<()>;
+
+ /// waitingLength property
+ #[zbus(property, name = "waitingLength")]
+ fn waiting_length(&self) -> zbus::Result<u32>;
+}