pub trait RecentManagerExt: 'static {
    // Required methods
    fn add_full(&self, uri: &str, recent_data: &RecentData) -> bool;
    fn add_item(&self, uri: &str) -> bool;
    fn items(&self) -> Vec<RecentInfo>;
    fn has_item(&self, uri: &str) -> bool;
    fn lookup_item(&self, uri: &str) -> Result<Option<RecentInfo>, Error>;
    fn move_item(&self, uri: &str, new_uri: Option<&str>) -> Result<(), Error>;
    fn purge_items(&self) -> Result<i32, Error>;
    fn remove_item(&self, uri: &str) -> Result<(), Error>;
    fn filename(&self) -> Option<GString>;
    fn size(&self) -> i32;
    fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
    fn connect_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required Methods§

source

fn add_full(&self, uri: &str, recent_data: &RecentData) -> bool

source

fn add_item(&self, uri: &str) -> bool

source

fn items(&self) -> Vec<RecentInfo>

source

fn has_item(&self, uri: &str) -> bool

source

fn lookup_item(&self, uri: &str) -> Result<Option<RecentInfo>, Error>

source

fn move_item(&self, uri: &str, new_uri: Option<&str>) -> Result<(), Error>

source

fn purge_items(&self) -> Result<i32, Error>

source

fn remove_item(&self, uri: &str) -> Result<(), Error>

source

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

source

fn size(&self) -> i32

source

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

source

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

Implementors§