[][src]Trait appstream_glib::AppExt

pub trait AppExt: 'static {
    fn add_addon<P: IsA<App>>(&self, addon: &P);
fn add_agreement<P: IsA<Agreement>>(&self, agreement: &P);
fn add_arch(&self, arch: &str);
fn add_bundle<P: IsA<Bundle>>(&self, bundle: &P);
fn add_category(&self, category: &str);
fn add_compulsory_for_desktop(&self, compulsory_for_desktop: &str);
fn add_extends(&self, extends: &str);
fn add_format<P: IsA<Format>>(&self, format: &P);
fn add_icon<P: IsA<Icon>>(&self, icon: &P);
fn add_keyword(&self, locale: Option<&str>, keyword: &str);
fn add_kudo(&self, kudo: &str);
fn add_kudo_kind(&self, kudo_kind: KudoKind);
fn add_language(&self, percentage: i32, locale: Option<&str>);
fn add_launchable<P: IsA<Launchable>>(&self, launchable: &P);
fn add_metadata(&self, key: &str, value: Option<&str>);
fn add_mimetype(&self, mimetype: &str);
fn add_permission(&self, permission: &str);
fn add_pkgname(&self, pkgname: &str);
fn add_provide<P: IsA<Provide>>(&self, provide: &P);
fn add_quirk(&self, quirk: AppQuirk);
fn add_require<P: IsA<Require>>(&self, require: &P);
fn add_review<P: IsA<Review>>(&self, review: &P);
fn add_screenshot<P: IsA<Screenshot>>(&self, screenshot: &P);
fn add_suggest<P: IsA<Suggest>>(&self, suggest: &P);
fn add_translation<P: IsA<Translation>>(&self, translation: &P);
fn add_url(&self, url_kind: UrlKind, url: &str);
fn convert_icons(&self, kind: IconKind) -> Result<(), Error>;
fn equal<P: IsA<App>>(&self, app2: &P) -> bool;
fn get_agreement_by_kind(&self, kind: AgreementKind) -> Option<Agreement>;
fn get_agreement_default(&self) -> Option<Agreement>;
fn get_branch(&self) -> Option<GString>;
fn get_bundle_default(&self) -> Option<Bundle>;
fn get_comment(&self, locale: Option<&str>) -> Option<GString>;
fn get_description(&self, locale: Option<&str>) -> Option<GString>;
fn get_developer_name(&self, locale: Option<&str>) -> Option<GString>;
fn get_format_by_filename(&self, filename: &str) -> Option<Format>;
fn get_format_by_kind(&self, kind: FormatKind) -> Option<Format>;
fn get_format_default(&self) -> Option<Format>;
fn get_icon_default(&self) -> Option<Icon>;
fn get_icon_for_size(&self, width: u32, height: u32) -> Option<Icon>;
fn get_icon_path(&self) -> Option<GString>;
fn get_id(&self) -> Option<GString>;
fn get_id_filename(&self) -> Option<GString>;
fn get_id_kind(&self) -> IdKind;
fn get_id_no_prefix(&self) -> Option<GString>;
fn get_kind(&self) -> AppKind;
fn get_language(&self, locale: Option<&str>) -> i32;
fn get_languages(&self) -> Vec<GString>;
fn get_launchable_by_kind(&self, kind: LaunchableKind) -> Option<Launchable>;
fn get_launchable_default(&self) -> Option<Launchable>;
fn get_merge_kind(&self) -> AppMergeKind;
fn get_metadata_item(&self, key: &str) -> Option<GString>;
fn get_metadata_license(&self) -> Option<GString>;
fn get_name(&self, locale: Option<&str>) -> Option<GString>;
fn get_origin(&self) -> Option<GString>;
fn get_pkgname_default(&self) -> Option<GString>;
fn get_priority(&self) -> i32;
fn get_project_group(&self) -> Option<GString>;
fn get_project_license(&self) -> Option<GString>;
fn get_require_by_value(
        &self,
        kind: RequireKind,
        value: &str
    ) -> Option<Require>;
fn get_scope(&self) -> AppScope;
fn get_screenshot_default(&self) -> Option<Screenshot>;
fn get_search_match(&self) -> u16;
fn get_source_file(&self) -> Option<GString>;
fn get_source_kind(&self) -> FormatKind;
fn get_source_pkgname(&self) -> Option<GString>;
fn get_state(&self) -> AppState;
fn get_trust_flags(&self) -> u32;
fn get_unique_id(&self) -> Option<GString>;
fn get_update_contact(&self) -> Option<GString>;
fn get_url_item(&self, url_kind: UrlKind) -> Option<GString>;
fn has_category(&self, category: &str) -> bool;
fn has_compulsory_for_desktop(&self, desktop: &str) -> bool;
fn has_kudo(&self, kudo: &str) -> bool;
fn has_kudo_kind(&self, kudo: KudoKind) -> bool;
fn has_permission(&self, permission: &str) -> bool;
fn has_quirk(&self, quirk: AppQuirk) -> bool;
fn parse_data(&self, data: &Bytes, flags: u32) -> Result<(), Error>;
fn parse_file(&self, filename: &str, flags: u32) -> Result<(), Error>;
fn remove_category(&self, category: &str);
fn remove_format<P: IsA<Format>>(&self, format: &P);
fn remove_kudo(&self, kudo: &str);
fn remove_metadata(&self, key: &str);
fn remove_veto(&self, description: &str);
fn search_matches(&self, search: &str) -> u32;
fn set_branch(&self, branch: &str);
fn set_comment(&self, locale: Option<&str>, comment: &str);
fn set_description(&self, locale: Option<&str>, description: &str);
fn set_developer_name(&self, locale: Option<&str>, developer_name: &str);
fn set_icon_path(&self, icon_path: &str);
fn set_id(&self, id: &str);
fn set_id_kind(&self, id_kind: IdKind);
fn set_kind(&self, kind: AppKind);
fn set_merge_kind(&self, merge_kind: AppMergeKind);
fn set_metadata_license(&self, metadata_license: &str);
fn set_name(&self, locale: Option<&str>, name: &str);
fn set_origin(&self, origin: &str);
fn set_priority(&self, priority: i32);
fn set_project_group(&self, project_group: &str);
fn set_project_license(&self, project_license: &str);
fn set_scope(&self, scope: AppScope);
fn set_search_match(&self, search_match: u16);
fn set_source_file(&self, source_file: &str);
fn set_source_kind(&self, source_kind: FormatKind);
fn set_source_pkgname(&self, source_pkgname: &str);
fn set_state(&self, state: AppState);
fn set_trust_flags(&self, trust_flags: u32);
fn set_update_contact(&self, update_contact: &str);
fn subsume<P: IsA<App>>(&self, donor: &P);
fn subsume_full<P: IsA<App>>(&self, donor: &P, flags: u64);
fn to_file<P: IsA<File>, Q: IsA<Cancellable>>(
        &self,
        file: &P,
        cancellable: Option<&Q>
    ) -> Result<(), Error>;
fn to_xml(&self) -> Result<String, Error>; }

Required methods

fn add_addon<P: IsA<App>>(&self, addon: &P)

fn add_agreement<P: IsA<Agreement>>(&self, agreement: &P)

fn add_arch(&self, arch: &str)

fn add_bundle<P: IsA<Bundle>>(&self, bundle: &P)

fn add_category(&self, category: &str)

fn add_compulsory_for_desktop(&self, compulsory_for_desktop: &str)

fn add_extends(&self, extends: &str)

fn add_format<P: IsA<Format>>(&self, format: &P)

fn add_icon<P: IsA<Icon>>(&self, icon: &P)

fn add_keyword(&self, locale: Option<&str>, keyword: &str)

fn add_kudo(&self, kudo: &str)

fn add_kudo_kind(&self, kudo_kind: KudoKind)

fn add_language(&self, percentage: i32, locale: Option<&str>)

fn add_launchable<P: IsA<Launchable>>(&self, launchable: &P)

fn add_metadata(&self, key: &str, value: Option<&str>)

fn add_mimetype(&self, mimetype: &str)

fn add_permission(&self, permission: &str)

fn add_pkgname(&self, pkgname: &str)

fn add_provide<P: IsA<Provide>>(&self, provide: &P)

fn add_quirk(&self, quirk: AppQuirk)

fn add_require<P: IsA<Require>>(&self, require: &P)

fn add_review<P: IsA<Review>>(&self, review: &P)

fn add_screenshot<P: IsA<Screenshot>>(&self, screenshot: &P)

fn add_suggest<P: IsA<Suggest>>(&self, suggest: &P)

fn add_translation<P: IsA<Translation>>(&self, translation: &P)

fn add_url(&self, url_kind: UrlKind, url: &str)

fn convert_icons(&self, kind: IconKind) -> Result<(), Error>

fn equal<P: IsA<App>>(&self, app2: &P) -> bool

fn get_agreement_by_kind(&self, kind: AgreementKind) -> Option<Agreement>

fn get_agreement_default(&self) -> Option<Agreement>

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

fn get_bundle_default(&self) -> Option<Bundle>

fn get_comment(&self, locale: Option<&str>) -> Option<GString>

fn get_description(&self, locale: Option<&str>) -> Option<GString>

fn get_developer_name(&self, locale: Option<&str>) -> Option<GString>

fn get_format_by_filename(&self, filename: &str) -> Option<Format>

fn get_format_by_kind(&self, kind: FormatKind) -> Option<Format>

fn get_format_default(&self) -> Option<Format>

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

fn get_icon_for_size(&self, width: u32, height: u32) -> Option<Icon>

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

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

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

fn get_id_kind(&self) -> IdKind

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

fn get_kind(&self) -> AppKind

fn get_language(&self, locale: Option<&str>) -> i32

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

fn get_launchable_by_kind(&self, kind: LaunchableKind) -> Option<Launchable>

fn get_launchable_default(&self) -> Option<Launchable>

fn get_merge_kind(&self) -> AppMergeKind

fn get_metadata_item(&self, key: &str) -> Option<GString>

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

fn get_name(&self, locale: Option<&str>) -> Option<GString>

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

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

fn get_priority(&self) -> i32

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

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

fn get_require_by_value(
    &self,
    kind: RequireKind,
    value: &str
) -> Option<Require>

fn get_scope(&self) -> AppScope

fn get_screenshot_default(&self) -> Option<Screenshot>

fn get_search_match(&self) -> u16

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

fn get_source_kind(&self) -> FormatKind

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

fn get_state(&self) -> AppState

fn get_trust_flags(&self) -> u32

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

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

fn get_url_item(&self, url_kind: UrlKind) -> Option<GString>

fn has_category(&self, category: &str) -> bool

fn has_compulsory_for_desktop(&self, desktop: &str) -> bool

fn has_kudo(&self, kudo: &str) -> bool

fn has_kudo_kind(&self, kudo: KudoKind) -> bool

fn has_permission(&self, permission: &str) -> bool

fn has_quirk(&self, quirk: AppQuirk) -> bool

fn parse_data(&self, data: &Bytes, flags: u32) -> Result<(), Error>

fn parse_file(&self, filename: &str, flags: u32) -> Result<(), Error>

fn remove_category(&self, category: &str)

fn remove_format<P: IsA<Format>>(&self, format: &P)

fn remove_kudo(&self, kudo: &str)

fn remove_metadata(&self, key: &str)

fn remove_veto(&self, description: &str)

fn search_matches(&self, search: &str) -> u32

fn set_branch(&self, branch: &str)

fn set_comment(&self, locale: Option<&str>, comment: &str)

fn set_description(&self, locale: Option<&str>, description: &str)

fn set_developer_name(&self, locale: Option<&str>, developer_name: &str)

fn set_icon_path(&self, icon_path: &str)

fn set_id(&self, id: &str)

fn set_id_kind(&self, id_kind: IdKind)

fn set_kind(&self, kind: AppKind)

fn set_merge_kind(&self, merge_kind: AppMergeKind)

fn set_metadata_license(&self, metadata_license: &str)

fn set_name(&self, locale: Option<&str>, name: &str)

fn set_origin(&self, origin: &str)

fn set_priority(&self, priority: i32)

fn set_project_group(&self, project_group: &str)

fn set_project_license(&self, project_license: &str)

fn set_scope(&self, scope: AppScope)

fn set_search_match(&self, search_match: u16)

fn set_source_file(&self, source_file: &str)

fn set_source_kind(&self, source_kind: FormatKind)

fn set_source_pkgname(&self, source_pkgname: &str)

fn set_state(&self, state: AppState)

fn set_trust_flags(&self, trust_flags: u32)

fn set_update_contact(&self, update_contact: &str)

fn subsume<P: IsA<App>>(&self, donor: &P)

fn subsume_full<P: IsA<App>>(&self, donor: &P, flags: u64)

fn to_file<P: IsA<File>, Q: IsA<Cancellable>>(
    &self,
    file: &P,
    cancellable: Option<&Q>
) -> Result<(), Error>

fn to_xml(&self) -> Result<String, Error>

Loading content...

Implementors

impl<O: IsA<App>> AppExt for O[src]

Loading content...