|
MLBookProc 2.1
|
The BookmarksKeeper class. More...
#include <BookmarksKeeper.h>


Public Member Functions | |
| BookmarksKeeper (const std::shared_ptr< MLBookProc > &mlbp) | |
| BookmarksKeeper constructor. | |
| void | loadBookmarksBase (const std::filesystem::path &bookmarks_base_path) |
| void | addToBookmarks (const UDBElement &book_search_result) |
| void | removeBookmark (const UDBElement &bookmark) |
| std::shared_mutex * | getRawMutex () |
The BookmarksKeeper class.
This class contains bookmarks database and methods to work with it. See also LibUDB documentation.
| BookmarksKeeper::BookmarksKeeper | ( | const std::shared_ptr< MLBookProc > & | mlbp | ) |
BookmarksKeeper constructor.
| mlbp | Smart pointer to MLBookProc object. |
| void BookmarksKeeper::addToBookmarks | ( | const UDBElement & | book_search_result | ) |
Adds book to bookmarks.
| book_search_result | UDBElement of BaseID::BookSearchResult type. |
| std::shared_mutex * BookmarksKeeper::getRawMutex | ( | ) |
Returns pointer to internal mutex used to block bookmarks database calls.
| void BookmarksKeeper::loadBookmarksBase | ( | const std::filesystem::path & | bookmarks_base_path | ) |
Loads bookmarks database to memory.
| bookmarks_base_path | Path to bookmarks database. |
| void BookmarksKeeper::removeBookmark | ( | const UDBElement & | bookmark | ) |
Removes bookmark from database.
| bookmark | UDBElement of BaseID::BookMark type. |