Trait ApplicationExt

Source
pub trait ApplicationExt: 'static {
Show 39 methods // Required methods fn activate(&self); fn add_main_option( &self, long_name: &str, short_name: Char, flags: OptionFlags, arg: OptionArg, description: &str, arg_description: Option<&str>, ); fn bind_busy_property<P: IsA<Object>>(&self, object: &P, property: &str); fn get_application_id(&self) -> Option<GString>; fn get_dbus_object_path(&self) -> Option<GString>; fn get_flags(&self) -> ApplicationFlags; fn get_inactivity_timeout(&self) -> u32; fn get_is_busy(&self) -> bool; fn get_is_registered(&self) -> bool; fn get_is_remote(&self) -> bool; fn get_resource_base_path(&self) -> Option<GString>; fn hold(&self); fn mark_busy(&self); fn open(&self, files: &[File], hint: &str); fn quit(&self); fn register<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<(), Error>; fn release(&self); fn send_notification(&self, id: Option<&str>, notification: &Notification); fn set_application_id(&self, application_id: Option<&str>); fn set_default(&self); fn set_flags(&self, flags: ApplicationFlags); fn set_inactivity_timeout(&self, inactivity_timeout: u32); fn set_resource_base_path(&self, resource_path: Option<&str>); fn unbind_busy_property<P: IsA<Object>>(&self, object: &P, property: &str); fn unmark_busy(&self); fn withdraw_notification(&self, id: &str); fn set_property_action_group(&self, action_group: Option<&ActionGroup>); fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_command_line<F: Fn(&Self, &ApplicationCommandLine) -> i32 + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_shutdown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_startup<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_action_group_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_application_id_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_flags_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_inactivity_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_is_busy_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_is_registered_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_is_remote_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_resource_base_path_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn activate(&self)

Source

fn add_main_option( &self, long_name: &str, short_name: Char, flags: OptionFlags, arg: OptionArg, description: &str, arg_description: Option<&str>, )

Source

fn bind_busy_property<P: IsA<Object>>(&self, object: &P, property: &str)

Source

fn get_application_id(&self) -> Option<GString>

Source

fn get_dbus_object_path(&self) -> Option<GString>

Source

fn get_flags(&self) -> ApplicationFlags

Source

fn get_inactivity_timeout(&self) -> u32

Source

fn get_is_busy(&self) -> bool

Source

fn get_is_registered(&self) -> bool

Source

fn get_is_remote(&self) -> bool

Source

fn get_resource_base_path(&self) -> Option<GString>

Source

fn hold(&self)

Source

fn mark_busy(&self)

Source

fn open(&self, files: &[File], hint: &str)

Source

fn quit(&self)

Source

fn register<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn release(&self)

Source

fn send_notification(&self, id: Option<&str>, notification: &Notification)

Source

fn set_application_id(&self, application_id: Option<&str>)

Source

fn set_default(&self)

Source

fn set_flags(&self, flags: ApplicationFlags)

Source

fn set_inactivity_timeout(&self, inactivity_timeout: u32)

Source

fn set_resource_base_path(&self, resource_path: Option<&str>)

Source

fn unbind_busy_property<P: IsA<Object>>(&self, object: &P, property: &str)

Source

fn unmark_busy(&self)

Source

fn withdraw_notification(&self, id: &str)

Source

fn set_property_action_group(&self, action_group: Option<&ActionGroup>)

Source

fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_command_line<F: Fn(&Self, &ApplicationCommandLine) -> i32 + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_shutdown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_startup<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_property_action_group_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_application_id_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_flags_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_inactivity_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_is_busy_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_is_registered_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_is_remote_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_resource_base_path_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§