use std::collections::HashMap;
use zbus::{Result, proxy};
use zvariant::OwnedObjectPath;
#[proxy(
interface = "org.freedesktop.NetworkManager.Device.Wireless",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait NMWireless {
fn request_scan(&self, options: HashMap<String, zvariant::Value<'_>>) -> Result<()>;
#[zbus(signal)]
fn access_point_added(&self, path: OwnedObjectPath);
#[zbus(signal)]
fn access_point_removed(&self, path: OwnedObjectPath);
#[zbus(property)]
fn mode(&self) -> Result<u32>;
#[zbus(property)]
fn bitrate(&self) -> Result<u32>;
#[zbus(property)]
fn access_points(&self) -> Result<Vec<OwnedObjectPath>>;
#[zbus(property)]
fn active_access_point(&self) -> Result<OwnedObjectPath>;
#[zbus(property)]
fn wireless_capabilities(&self) -> Result<u32>;
#[zbus(property)]
fn last_scan(&self) -> Result<i64>;
}