[][src]Trait appstream_glib::StoreExt

pub trait StoreExt: 'static {
    fn add_app<P: IsA<App>>(&self, app: &P);
fn add_filter(&self, kind: AppKind);
fn add_metadata_index(&self, key: &str);
fn convert_icons(&self, kind: IconKind) -> Result<(), Error>;
fn from_bytes<P: IsA<Cancellable>>(
        &self,
        bytes: &Bytes,
        cancellable: Option<&P>
    ) -> Result<(), Error>;
fn from_file<P: IsA<File>, Q: IsA<Cancellable>>(
        &self,
        file: &P,
        icon_root: Option<&str>,
        cancellable: Option<&Q>
    ) -> Result<(), Error>;
fn from_xml(&self, data: &str, icon_root: Option<&str>) -> Result<(), Error>;
fn get_add_flags(&self) -> u32;
fn get_api_version(&self) -> f64;
fn get_app_by_id(&self, id: &str) -> Option<App>;
fn get_app_by_id_ignore_prefix(&self, id: &str) -> Option<App>;
fn get_app_by_id_with_fallbacks(&self, id: &str) -> Option<App>;
fn get_app_by_launchable(
        &self,
        kind: LaunchableKind,
        value: &str
    ) -> Option<App>;
fn get_app_by_pkgname(&self, pkgname: &str) -> Option<App>;
fn get_app_by_provide(&self, kind: ProvideKind, value: &str) -> Option<App>;
fn get_app_by_unique_id(
        &self,
        unique_id: &str,
        search_flags: u32
    ) -> Option<App>;
fn get_builder_id(&self) -> Option<GString>;
fn get_destdir(&self) -> Option<GString>;
fn get_origin(&self) -> Option<GString>;
fn get_search_match(&self) -> u16;
fn get_size(&self) -> u32;
fn get_watch_flags(&self) -> u32;
fn load<P: IsA<Cancellable>>(
        &self,
        flags: u32,
        cancellable: Option<&P>
    ) -> Result<(), Error>;
fn load_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        flags: StoreLoadFlags,
        cancellable: Option<&P>,
        callback: Q
    );
fn load_path<P: IsA<Cancellable>>(
        &self,
        path: &str,
        cancellable: Option<&P>
    ) -> Result<(), Error>;
fn load_path_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        path: &str,
        cancellable: Option<&P>,
        callback: Q
    );
fn load_search_cache(&self);
fn remove_all(&self);
fn remove_app<P: IsA<App>>(&self, app: &P);
fn remove_app_by_id(&self, id: &str);
fn remove_apps_with_veto(&self);
fn remove_filter(&self, kind: AppKind);
fn set_add_flags(&self, add_flags: u32);
fn set_api_version(&self, api_version: f64);
fn set_builder_id(&self, builder_id: &str);
fn set_destdir(&self, destdir: &str);
fn set_origin(&self, origin: &str);
fn set_search_match(&self, search_match: u16);
fn set_watch_flags(&self, watch_flags: u32);
fn to_file<P: IsA<File>, Q: IsA<Cancellable>>(
        &self,
        file: &P,
        flags: u32,
        cancellable: Option<&Q>
    ) -> Result<(), Error>;
fn to_xml(&self, flags: u32) -> Option<String>;
fn connect_app_added<F: Fn(&Self, &App) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_app_changed<F: Fn(&Self, &App) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_app_removed<F: Fn(&Self, &App) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; }

Required methods

fn add_app<P: IsA<App>>(&self, app: &P)

fn add_filter(&self, kind: AppKind)

fn add_metadata_index(&self, key: &str)

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

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

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

fn from_xml(&self, data: &str, icon_root: Option<&str>) -> Result<(), Error>

fn get_add_flags(&self) -> u32

fn get_api_version(&self) -> f64

fn get_app_by_id(&self, id: &str) -> Option<App>

fn get_app_by_id_ignore_prefix(&self, id: &str) -> Option<App>

fn get_app_by_id_with_fallbacks(&self, id: &str) -> Option<App>

fn get_app_by_launchable(
    &self,
    kind: LaunchableKind,
    value: &str
) -> Option<App>

fn get_app_by_pkgname(&self, pkgname: &str) -> Option<App>

fn get_app_by_provide(&self, kind: ProvideKind, value: &str) -> Option<App>

fn get_app_by_unique_id(
    &self,
    unique_id: &str,
    search_flags: u32
) -> Option<App>

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

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

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

fn get_search_match(&self) -> u16

fn get_size(&self) -> u32

fn get_watch_flags(&self) -> u32

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

fn load_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    flags: StoreLoadFlags,
    cancellable: Option<&P>,
    callback: Q
)

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

fn load_path_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    path: &str,
    cancellable: Option<&P>,
    callback: Q
)

fn load_search_cache(&self)

fn remove_all(&self)

fn remove_app<P: IsA<App>>(&self, app: &P)

fn remove_app_by_id(&self, id: &str)

fn remove_apps_with_veto(&self)

fn remove_filter(&self, kind: AppKind)

fn set_add_flags(&self, add_flags: u32)

fn set_api_version(&self, api_version: f64)

fn set_builder_id(&self, builder_id: &str)

fn set_destdir(&self, destdir: &str)

fn set_origin(&self, origin: &str)

fn set_search_match(&self, search_match: u16)

fn set_watch_flags(&self, watch_flags: u32)

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

fn to_xml(&self, flags: u32) -> Option<String>

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

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

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

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

Loading content...

Implementors

impl<O: IsA<Store>> StoreExt for O[src]

Loading content...