use zbus::dbus_proxy;
#[dbus_proxy(
interface = "org.freedesktop.PackageKit.Transaction",
assume_defaults = true
)]
trait Transaction {
fn accept_eula(&self, eula_id: &str) -> zbus::Result<()>;
fn cancel(&self) -> zbus::Result<()>;
fn depends_on(&self, filter: u64, package_ids: &[&str], recursive: bool) -> zbus::Result<()>;
fn download_packages(&self, store_in_cache: bool, package_ids: &[&str]) -> zbus::Result<()>;
fn get_categories(&self) -> zbus::Result<()>;
fn get_details(&self, package_ids: &[&str]) -> zbus::Result<()>;
fn get_details_local(&self, files: &[&str]) -> zbus::Result<()>;
fn get_distro_upgrades(&self) -> zbus::Result<()>;
fn get_files(&self, package_ids: &[&str]) -> zbus::Result<()>;
fn get_files_local(&self, files: &[&str]) -> zbus::Result<()>;
fn get_old_transactions(&self, number: u32) -> zbus::Result<()>;
fn get_packages(&self, filter: u64) -> zbus::Result<()>;
fn get_repo_list(&self, filter: u64) -> zbus::Result<()>;
fn get_update_detail(&self, package_ids: &[&str]) -> zbus::Result<()>;
fn get_updates(&self, filter: u64) -> zbus::Result<()>;
fn install_files(&self, transaction_flags: u64, full_paths: &[&str]) -> zbus::Result<()>;
fn install_packages(&self, transaction_flags: u64, package_ids: &[&str]) -> zbus::Result<()>;
fn install_signature(&self, sig_type: u32, key_id: &str, package_id: &str) -> zbus::Result<()>;
fn refresh_cache(&self, force: bool) -> zbus::Result<()>;
fn remove_packages(
&self,
transaction_flags: u64,
package_ids: &[&str],
allow_deps: bool,
autoremove: bool,
) -> zbus::Result<()>;
fn repair_system(&self, transaction_flags: u64) -> zbus::Result<()>;
fn repo_enable(&self, repo_id: &str, enabled: bool) -> zbus::Result<()>;
fn repo_remove(
&self,
transaction_flags: u64,
repo_id: &str,
autoremove: bool,
) -> zbus::Result<()>;
fn repo_set_data(&self, repo_id: &str, parameter: &str, value: &str) -> zbus::Result<()>;
fn required_by(&self, filter: u64, package_ids: &[&str], recursive: bool) -> zbus::Result<()>;
fn resolve(&self, filter: u64, packages: &[&str]) -> zbus::Result<()>;
fn search_details(&self, filter: u64, values: &[&str]) -> zbus::Result<()>;
fn search_files(&self, filter: u64, values: &[&str]) -> zbus::Result<()>;
fn search_groups(&self, filter: u64, values: &[&str]) -> zbus::Result<()>;
fn search_names(&self, filter: u64, values: &[&str]) -> zbus::Result<()>;
fn set_hints(&self, hints: &[&str]) -> zbus::Result<()>;
fn update_packages(&self, transaction_flags: u64, package_ids: &[&str]) -> zbus::Result<()>;
fn upgrade_system(
&self,
transaction_flags: u64,
distro_id: &str,
upgrade_kind: u32,
) -> zbus::Result<()>;
fn what_provides(&self, filter: u64, values: &[&str]) -> zbus::Result<()>;
#[dbus_proxy(property)]
fn allow_cancel(&self) -> zbus::Result<bool>;
#[dbus_proxy(property)]
fn caller_active(&self) -> zbus::Result<bool>;
#[dbus_proxy(property)]
fn download_size_remaining(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn elapsed_time(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn last_package(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn percentage(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn remaining_time(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn role(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn sender(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn speed(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn status(&self) -> zbus::Result<u32>;
#[dbus_proxy(property)]
fn transaction_flags(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn uid(&self) -> zbus::Result<u32>;
}