Skip to main content

packagekit_zbus/
offline.rs

1//! # D-Bus interface proxy for: `org.freedesktop.PackageKit.Offline`
2//!
3//! This code was generated by `zbus-xmlgen` `5.2.0` from D-Bus introspection data.
4//! Source: `org.freedesktop.PackageKit.xml`.
5//!
6//! You may prefer to adapt it, instead of using it verbatim.
7//!
8//! More information can be found in the [Writing a client proxy] section of the zbus
9//! documentation.
10//!
11//!
12//! [Writing a client proxy]: https://z-galaxy.github.io/zbus/client.html
13//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
14use zbus::proxy;
15#[proxy(
16    interface = "org.freedesktop.PackageKit.Offline",
17    assume_defaults = true
18)]
19pub trait Offline {
20    /// Cancel method
21    fn cancel(&self) -> zbus::Result<()>;
22
23    /// ClearResults method
24    fn clear_results(&self) -> zbus::Result<()>;
25
26    /// GetPrepared method
27    fn get_prepared(&self) -> zbus::Result<Vec<String>>;
28
29    /// Trigger method
30    fn trigger(&self, action: &str) -> zbus::Result<()>;
31
32    /// TriggerUpgrade method
33    fn trigger_upgrade(&self, action: &str) -> zbus::Result<()>;
34
35    /// PreparedUpgrade property
36    #[zbus(property)]
37    fn prepared_upgrade(
38        &self,
39    ) -> zbus::Result<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>;
40
41    /// TriggerAction property
42    #[zbus(property)]
43    fn trigger_action(&self) -> zbus::Result<String>;
44
45    /// UpdatePrepared property
46    #[zbus(property)]
47    fn update_prepared(&self) -> zbus::Result<bool>;
48
49    /// UpdateTriggered property
50    #[zbus(property)]
51    fn update_triggered(&self) -> zbus::Result<bool>;
52
53    /// UpgradePrepared property
54    #[zbus(property)]
55    fn upgrade_prepared(&self) -> zbus::Result<bool>;
56
57    /// UpgradeTriggered property
58    #[zbus(property)]
59    fn upgrade_triggered(&self) -> zbus::Result<bool>;
60}