Trait gio::prelude::AppInfoExt

source ·
pub trait AppInfoExt: 'static {
Show 23 methods // Required methods fn add_supports_type(&self, content_type: &str) -> Result<(), Error>; fn can_delete(&self) -> bool; fn can_remove_supports_type(&self) -> bool; fn delete(&self) -> bool; fn dup(&self) -> AppInfo; fn equal(&self, appinfo2: &impl IsA<AppInfo>) -> bool; fn commandline(&self) -> Option<PathBuf>; fn description(&self) -> Option<GString>; fn display_name(&self) -> GString; fn executable(&self) -> PathBuf; fn icon(&self) -> Option<Icon>; fn id(&self) -> Option<GString>; fn name(&self) -> GString; fn supported_types(&self) -> Vec<GString>; fn launch( &self, files: &[File], context: Option<&impl IsA<AppLaunchContext>> ) -> Result<(), Error>; fn launch_uris( &self, uris: &[&str], context: Option<&impl IsA<AppLaunchContext>> ) -> Result<(), Error>; fn remove_supports_type(&self, content_type: &str) -> Result<(), Error>; fn set_as_default_for_extension( &self, extension: impl AsRef<Path> ) -> Result<(), Error>; fn set_as_default_for_type(&self, content_type: &str) -> Result<(), Error>; fn set_as_last_used_for_type(&self, content_type: &str) -> Result<(), Error>; fn should_show(&self) -> bool; fn supports_files(&self) -> bool; fn supports_uris(&self) -> bool;
}

Required Methods§

source

fn add_supports_type(&self, content_type: &str) -> Result<(), Error>

source

fn can_delete(&self) -> bool

source

fn can_remove_supports_type(&self) -> bool

source

fn delete(&self) -> bool

source

fn dup(&self) -> AppInfo

source

fn equal(&self, appinfo2: &impl IsA<AppInfo>) -> bool

source

fn commandline(&self) -> Option<PathBuf>

source

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

source

fn display_name(&self) -> GString

source

fn executable(&self) -> PathBuf

source

fn icon(&self) -> Option<Icon>

source

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

source

fn name(&self) -> GString

source

fn supported_types(&self) -> Vec<GString>

source

fn launch( &self, files: &[File], context: Option<&impl IsA<AppLaunchContext>> ) -> Result<(), Error>

source

fn launch_uris( &self, uris: &[&str], context: Option<&impl IsA<AppLaunchContext>> ) -> Result<(), Error>

source

fn remove_supports_type(&self, content_type: &str) -> Result<(), Error>

source

fn set_as_default_for_extension( &self, extension: impl AsRef<Path> ) -> Result<(), Error>

source

fn set_as_default_for_type(&self, content_type: &str) -> Result<(), Error>

source

fn set_as_last_used_for_type(&self, content_type: &str) -> Result<(), Error>

source

fn should_show(&self) -> bool

source

fn supports_files(&self) -> bool

source

fn supports_uris(&self) -> bool

Implementors§