/* * BookmarkRepository.vala * * Repository for bookmark operations. */ namespace RSSuper { /** * BookmarkRepository - Interface for bookmark repository operations */ public interface BookmarkRepository : Object { public abstract void get_all_bookmarks(State callback); public abstract Bookmark? get_bookmark_by_id(string id) throws Error; public abstract Bookmark? get_bookmark_by_feed_item_id(string feed_item_id) throws Error; public abstract void add_bookmark(Bookmark bookmark) throws Error; public abstract void update_bookmark(Bookmark bookmark) throws Error; public abstract void delete_bookmark(string id) throws Error; public abstract void delete_bookmark_by_feed_item_id(string feed_item_id) throws Error; public abstract int get_bookmark_count() throws Error; public abstract Bookmark[] get_bookmarks_by_tag(string tag) throws Error; } }