use zbus::proxy;
use zvariant::OwnedObjectPath;
#[proxy(
interface = "org.freedesktop.NetworkManager.Settings",
default_service = "org.freedesktop.NetworkManager",
default_path = "/org/freedesktop/NetworkManager/Settings"
)]
pub trait NMSettings {
fn list_connections(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
#[zbus(property)]
fn connections(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
fn get_connection_by_uuid(&self, uuid: &str) -> zbus::Result<OwnedObjectPath>;
fn reload_connections(&self) -> zbus::Result<bool>;
#[zbus(signal, name = "NewConnection")]
fn new_connection(&self, connection: OwnedObjectPath);
#[zbus(signal, name = "ConnectionRemoved")]
fn connection_removed(&self, connection: OwnedObjectPath);
}