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