use std::collections::HashMap;
use zbus::{proxy, zvariant::OwnedValue};
#[proxy(
default_service = "org.freedesktop.NetworkManager",
interface = "org.freedesktop.NetworkManager.Settings.Connection"
)]
pub(crate) trait SettingsConnection {
fn update(&self, properties: HashMap<String, HashMap<String, OwnedValue>>) -> zbus::Result<()>;
fn update_unsaved(
&self,
properties: HashMap<String, HashMap<String, OwnedValue>>,
) -> zbus::Result<()>;
fn delete(&self) -> zbus::Result<()>;
fn get_settings(&self) -> zbus::Result<HashMap<String, HashMap<String, OwnedValue>>>;
fn get_secrets(
&self,
setting_name: &str,
) -> zbus::Result<HashMap<String, HashMap<String, OwnedValue>>>;
fn clear_secrets(&self) -> zbus::Result<()>;
fn save(&self) -> zbus::Result<()>;
fn update2(
&self,
settings: HashMap<String, HashMap<String, OwnedValue>>,
flags: u32,
args: HashMap<String, OwnedValue>,
) -> zbus::Result<HashMap<String, OwnedValue>>;
#[zbus(property)]
fn unsaved(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn flags(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn filename(&self) -> zbus::Result<String>;
#[zbus(signal)]
fn properties_changed(&self, properties: HashMap<String, OwnedValue>) -> zbus::Result<()>;
#[zbus(signal)]
fn updated(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn removed(&self) -> zbus::Result<()>;
}