use std::collections::HashMap;
use zbus::proxy;
use zvariant::OwnedObjectPath;
#[proxy(
interface = "org.freedesktop.ModemManager1.Modem",
default_service = "org.freedesktop.ModemManager1"
)]
pub trait MMModem {
fn enable(&self, enable: bool) -> zbus::Result<()>;
fn list_bearers(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
fn create_bearer(
&self,
properties: HashMap<&str, zvariant::Value<'_>>,
) -> zbus::Result<OwnedObjectPath>;
fn delete_bearer(&self, bearer: OwnedObjectPath) -> zbus::Result<()>;
fn reset(&self) -> zbus::Result<()>;
fn set_power_state(&self, state: u32) -> zbus::Result<()>;
fn command(&self, cmd: &str, timeout: u32) -> zbus::Result<String>;
#[zbus(property)]
fn sim(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn state(&self) -> zbus::Result<i32>;
#[zbus(property)]
fn power_state(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn access_technologies(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn signal_quality(&self) -> zbus::Result<(u32, bool)>;
#[zbus(property)]
fn manufacturer(&self) -> zbus::Result<String>;
#[zbus(property)]
fn model(&self) -> zbus::Result<String>;
#[zbus(property)]
fn equipment_identifier(&self) -> zbus::Result<String>;
#[zbus(property)]
fn max_bearers(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn max_active_bearers(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn bearers(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
#[zbus(signal, name = "StateChanged")]
fn modem_state_changed(&self, old: i32, new: i32, reason: u32);
}