use crate::zbus::proxy;
#[proxy(
interface = "org.freedesktop.timedate1",
gen_blocking = false,
default_service = "org.freedesktop.timedate1",
default_path = "/org/freedesktop/timedate1"
)]
pub trait Timedated {
#[zbus(name = "SetTime")]
fn set_time(&self, usec_utc: i64, relative: bool, interactive: bool)
-> crate::zbus::Result<()>;
#[zbus(name = "SetTimezone")]
fn set_timezone(&self, timezone: String, interactive: bool) -> crate::zbus::Result<()>;
#[zbus(name = "SetLocalRTC")]
fn set_local_rtc(
&self,
local_rtc: bool,
fix_system: bool,
interactive: bool,
) -> crate::zbus::Result<()>;
#[zbus(name = "SetNTP")]
fn set_ntp(&self, use_ntp: bool, interactive: bool) -> crate::zbus::Result<()>;
#[zbus(name = "ListTimezones")]
fn list_timezones(&self) -> crate::zbus::Result<Vec<String>>;
#[zbus(property(emits_changed_signal = "true"), name = "Timezone")]
fn timezone(&self) -> crate::zbus::Result<String>;
#[zbus(property(emits_changed_signal = "true"), name = "LocalRTC")]
fn local_rtc(&self) -> crate::zbus::Result<bool>;
#[zbus(property(emits_changed_signal = "false"), name = "CanNTP")]
fn can_ntp(&self) -> crate::zbus::Result<bool>;
#[zbus(property(emits_changed_signal = "true"), name = "NTP")]
fn ntp(&self) -> crate::zbus::Result<bool>;
#[zbus(property(emits_changed_signal = "false"), name = "NTPSynchronized")]
fn ntp_synchronized(&self) -> crate::zbus::Result<bool>;
#[zbus(property(emits_changed_signal = "false"), name = "TimeUSec")]
fn time_u_sec(&self) -> crate::zbus::Result<u64>;
#[zbus(property(emits_changed_signal = "false"), name = "RTCTimeUSec")]
fn rtc_time_u_sec(&self) -> crate::zbus::Result<u64>;
}