Skip to main content

packagekit_zbus/
package_kit.rs

1//! # D-Bus interface proxy for: `org.freedesktop.PackageKit`
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(interface = "org.freedesktop.PackageKit", assume_defaults = true)]
16pub trait PackageKit {
17    /// CanAuthorize method
18    fn can_authorize(&self, action_id: &str) -> zbus::Result<u32>;
19
20    /// CreateTransaction method
21    fn create_transaction(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
22
23    /// GetDaemonState method
24    fn get_daemon_state(&self) -> zbus::Result<String>;
25
26    /// GetPackageHistory method
27    fn get_package_history(
28        &self,
29        names: &[&str],
30        count: u32,
31    ) -> zbus::Result<
32        std::collections::HashMap<
33            String,
34            Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>,
35        >,
36    >;
37
38    /// GetTimeSinceAction method
39    fn get_time_since_action(&self, role: u32) -> zbus::Result<u32>;
40
41    /// GetTransactionList method
42    fn get_transaction_list(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
43
44    /// SetProxy method
45    fn set_proxy(
46        &self,
47        proxy_http: &str,
48        proxy_https: &str,
49        proxy_ftp: &str,
50        proxy_socks: &str,
51        no_proxy: &str,
52        pac: &str,
53    ) -> zbus::Result<()>;
54
55    /// StateHasChanged method
56    fn state_has_changed(&self, reason: &str) -> zbus::Result<()>;
57
58    /// SuggestDaemonQuit method
59    fn suggest_daemon_quit(&self) -> zbus::Result<()>;
60
61    /// RepoListChanged signal
62    #[zbus(signal)]
63    fn repo_list_changed(&self) -> zbus::Result<()>;
64
65    /// RestartSchedule signal
66    #[zbus(signal)]
67    fn restart_schedule(&self) -> zbus::Result<()>;
68
69    /// TransactionListChanged signal
70    #[zbus(signal)]
71    fn transaction_list_changed(&self, transactions: Vec<&str>) -> zbus::Result<()>;
72
73    /// UpdatesChanged signal
74    #[zbus(signal)]
75    fn updates_changed(&self) -> zbus::Result<()>;
76
77    /// BackendAuthor property
78    #[zbus(property)]
79    fn backend_author(&self) -> zbus::Result<String>;
80
81    /// BackendDescription property
82    #[zbus(property)]
83    fn backend_description(&self) -> zbus::Result<String>;
84
85    /// BackendName property
86    #[zbus(property)]
87    fn backend_name(&self) -> zbus::Result<String>;
88
89    /// DistroId property
90    #[zbus(property)]
91    fn distro_id(&self) -> zbus::Result<String>;
92
93    /// Filters property
94    #[zbus(property)]
95    fn filters(&self) -> zbus::Result<u64>;
96
97    /// Groups property
98    #[zbus(property)]
99    fn groups(&self) -> zbus::Result<u64>;
100
101    /// Locked property
102    #[zbus(property)]
103    fn locked(&self) -> zbus::Result<bool>;
104
105    /// MimeTypes property
106    #[zbus(property)]
107    fn mime_types(&self) -> zbus::Result<Vec<String>>;
108
109    /// NetworkState property
110    #[zbus(property)]
111    fn network_state(&self) -> zbus::Result<u32>;
112
113    /// Roles property
114    #[zbus(property)]
115    fn roles(&self) -> zbus::Result<u64>;
116
117    /// VersionMajor property
118    #[zbus(property)]
119    fn version_major(&self) -> zbus::Result<u32>;
120
121    /// VersionMicro property
122    #[zbus(property)]
123    fn version_micro(&self) -> zbus::Result<u32>;
124
125    /// VersionMinor property
126    #[zbus(property)]
127    fn version_minor(&self) -> zbus::Result<u32>;
128}