use zbus::proxy;
#[proxy(
interface = "org.freedesktop.login1.Session",
gen_blocking = false,
default_service = "org.freedesktop.login1",
assume_defaults = false
)]
pub trait Session {
fn activate(&self) -> zbus::Result<()>;
fn kill(&self, whom: &str, signal_number: i32) -> zbus::Result<()>;
fn lock(&self) -> zbus::Result<()>;
fn pause_device_complete(&self, major: u32, minor: u32) -> zbus::Result<()>;
fn release_control(&self) -> zbus::Result<()>;
fn release_device(&self, major: u32, minor: u32) -> zbus::Result<()>;
fn set_brightness(&self, subsystem: &str, name: &str, brightness: u32) -> zbus::Result<()>;
fn set_class(&self, class: &str) -> zbus::Result<()>;
fn set_display(&self, display: &str) -> zbus::Result<()>;
fn set_idle_hint(&self, idle: bool) -> zbus::Result<()>;
fn set_locked_hint(&self, locked: bool) -> zbus::Result<()>;
#[zbus(name = "SetTTY")]
fn set_tty(&self, tty_fd: zbus::zvariant::Fd<'_>) -> zbus::Result<()>;
fn set_type(&self, type_: &str) -> zbus::Result<()>;
fn take_control(&self, force: bool) -> zbus::Result<()>;
fn take_device(&self, major: u32, minor: u32) -> zbus::Result<(zbus::zvariant::OwnedFd, bool)>;
fn terminate(&self) -> zbus::Result<()>;
fn unlock(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn lock(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn pause_device(&self, major: u32, minor: u32, type_: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn resume_device(&self, major: u32, minor: u32, fd: zbus::zvariant::Fd<'_>)
-> zbus::Result<()>;
#[zbus(signal)]
fn unlock(&self) -> zbus::Result<()>;
#[zbus(property)]
fn active(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn audit(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn can_idle(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn can_lock(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn class(&self) -> zbus::Result<String>;
#[zbus(property)]
fn desktop(&self) -> zbus::Result<String>;
#[zbus(property)]
fn display(&self) -> zbus::Result<String>;
#[zbus(property)]
fn id(&self) -> zbus::Result<String>;
#[zbus(property)]
fn idle_hint(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn idle_since_hint(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn idle_since_hint_monotonic(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn leader(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn locked_hint(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn name(&self) -> zbus::Result<String>;
#[zbus(property)]
fn remote(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn remote_host(&self) -> zbus::Result<String>;
#[zbus(property)]
fn remote_user(&self) -> zbus::Result<String>;
#[zbus(property)]
fn scope(&self) -> zbus::Result<String>;
#[zbus(property)]
fn seat(&self) -> zbus::Result<(String, zbus::zvariant::OwnedObjectPath)>;
#[zbus(property)]
fn service(&self) -> zbus::Result<String>;
#[zbus(property)]
fn state(&self) -> zbus::Result<String>;
#[zbus(property, name = "TTY")]
fn tty(&self) -> zbus::Result<String>;
#[zbus(property)]
fn timestamp(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn timestamp_monotonic(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn type_(&self) -> zbus::Result<String>;
#[zbus(property)]
fn user(&self) -> zbus::Result<(u32, zbus::zvariant::OwnedObjectPath)>;
#[zbus(property, name = "VTNr")]
fn vtnr(&self) -> zbus::Result<u32>;
}