use zbus::proxy;
use zbus::zvariant::OwnedObjectPath;
#[proxy(
interface = "org.freedesktop.NetworkManager.Connection.Active",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait Active {
#[zbus(signal, name = "StateChanged")]
fn act_state_changed_signal(&self, state: u32, reason: u32) -> zbus::Result<()>;
#[zbus(property)]
fn connection(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn controller(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn default(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn default6(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn devices(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
#[zbus(property)]
fn dhcp4_config(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn dhcp6_config(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn id(&self) -> zbus::Result<String>;
#[zbus(property)]
fn ip4_config(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn ip6_config(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn master(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn specific_object(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property, name = "State")]
fn act_state(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn state_flags(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn type_(&self) -> zbus::Result<String>;
#[zbus(property)]
fn uuid(&self) -> zbus::Result<String>;
#[zbus(property)]
fn vpn(&self) -> zbus::Result<bool>;
}