packagekit_zbus/
package_kit.rs1use zbus::proxy;
15#[proxy(interface = "org.freedesktop.PackageKit", assume_defaults = true)]
16pub trait PackageKit {
17 fn can_authorize(&self, action_id: &str) -> zbus::Result<u32>;
19
20 fn create_transaction(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
22
23 fn get_daemon_state(&self) -> zbus::Result<String>;
25
26 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 fn get_time_since_action(&self, role: u32) -> zbus::Result<u32>;
40
41 fn get_transaction_list(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
43
44 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 fn state_has_changed(&self, reason: &str) -> zbus::Result<()>;
57
58 fn suggest_daemon_quit(&self) -> zbus::Result<()>;
60
61 #[zbus(signal)]
63 fn repo_list_changed(&self) -> zbus::Result<()>;
64
65 #[zbus(signal)]
67 fn restart_schedule(&self) -> zbus::Result<()>;
68
69 #[zbus(signal)]
71 fn transaction_list_changed(&self, transactions: Vec<&str>) -> zbus::Result<()>;
72
73 #[zbus(signal)]
75 fn updates_changed(&self) -> zbus::Result<()>;
76
77 #[zbus(property)]
79 fn backend_author(&self) -> zbus::Result<String>;
80
81 #[zbus(property)]
83 fn backend_description(&self) -> zbus::Result<String>;
84
85 #[zbus(property)]
87 fn backend_name(&self) -> zbus::Result<String>;
88
89 #[zbus(property)]
91 fn distro_id(&self) -> zbus::Result<String>;
92
93 #[zbus(property)]
95 fn filters(&self) -> zbus::Result<u64>;
96
97 #[zbus(property)]
99 fn groups(&self) -> zbus::Result<u64>;
100
101 #[zbus(property)]
103 fn locked(&self) -> zbus::Result<bool>;
104
105 #[zbus(property)]
107 fn mime_types(&self) -> zbus::Result<Vec<String>>;
108
109 #[zbus(property)]
111 fn network_state(&self) -> zbus::Result<u32>;
112
113 #[zbus(property)]
115 fn roles(&self) -> zbus::Result<u64>;
116
117 #[zbus(property)]
119 fn version_major(&self) -> zbus::Result<u32>;
120
121 #[zbus(property)]
123 fn version_micro(&self) -> zbus::Result<u32>;
124
125 #[zbus(property)]
127 fn version_minor(&self) -> zbus::Result<u32>;
128}