use zbus::dbus_proxy;
#[dbus_proxy(
interface = "org.freedesktop.locale1",
gen_blocking = false,
default_service = "org.freedesktop.locale1",
default_path = "/org/freedesktop/locale1"
)]
trait Localed {
#[dbus_proxy(name = "SetLocale")]
fn set_locale(&self, locale: Vec<String>, interactive: bool) -> crate::zbus::Result<()>;
#[dbus_proxy(name = "SetVConsoleKeyboard")]
fn set_v_console_keyboard(
&self,
keymap: String,
keymap_toggle: String,
convert: bool,
interactive: bool,
) -> crate::zbus::Result<()>;
#[dbus_proxy(name = "SetX11Keyboard")]
fn set_x11_keyboard(
&self,
layout: String,
model: String,
variant: String,
options: String,
convert: bool,
interactive: bool,
) -> crate::zbus::Result<()>;
#[dbus_proxy(property, name = "Locale")]
fn locale(&self) -> crate::zbus::Result<Vec<String>>;
#[dbus_proxy(property, name = "X11Layout")]
fn x11_layout(&self) -> crate::zbus::Result<String>;
#[dbus_proxy(property, name = "X11Model")]
fn x11_model(&self) -> crate::zbus::Result<String>;
#[dbus_proxy(property, name = "X11Variant")]
fn x11_variant(&self) -> crate::zbus::Result<String>;
#[dbus_proxy(property, name = "X11Options")]
fn x11_options(&self) -> crate::zbus::Result<String>;
#[dbus_proxy(property, name = "VConsoleKeymap")]
fn v_console_keymap(&self) -> crate::zbus::Result<String>;
#[dbus_proxy(property, name = "VConsoleKeymapToggle")]
fn v_console_keymap_toggle(&self) -> crate::zbus::Result<String>;
}