use zbus::proxy;
#[proxy(interface = "org.freedesktop.PackageKit", assume_defaults = true)]
pub trait PackageKit {
fn can_authorize(&self, action_id: &str) -> zbus::Result<u32>;
fn create_transaction(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
fn get_daemon_state(&self) -> zbus::Result<String>;
fn get_package_history(
&self,
names: &[&str],
count: u32,
) -> zbus::Result<
std::collections::HashMap<
String,
Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>,
>,
>;
fn get_time_since_action(&self, role: u32) -> zbus::Result<u32>;
fn get_transaction_list(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
fn set_proxy(
&self,
proxy_http: &str,
proxy_https: &str,
proxy_ftp: &str,
proxy_socks: &str,
no_proxy: &str,
pac: &str,
) -> zbus::Result<()>;
fn state_has_changed(&self, reason: &str) -> zbus::Result<()>;
fn suggest_daemon_quit(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn repo_list_changed(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn restart_schedule(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn transaction_list_changed(&self, transactions: Vec<&str>) -> zbus::Result<()>;
#[zbus(signal)]
fn updates_changed(&self) -> zbus::Result<()>;
#[zbus(property)]
fn backend_author(&self) -> zbus::Result<String>;
#[zbus(property)]
fn backend_description(&self) -> zbus::Result<String>;
#[zbus(property)]
fn backend_name(&self) -> zbus::Result<String>;
#[zbus(property)]
fn distro_id(&self) -> zbus::Result<String>;
#[zbus(property)]
fn filters(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn groups(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn locked(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn mime_types(&self) -> zbus::Result<Vec<String>>;
#[zbus(property)]
fn network_state(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn roles(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn version_major(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn version_micro(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn version_minor(&self) -> zbus::Result<u32>;
}