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


Public Member Functions | |
| NotesKeeper (const std::shared_ptr< MLBookProc > &mlbp) | |
| NotesKeeper constructor. | |
| void | loadNotesBase (const std::filesystem::path &base_path) |
| UDBase | searchNotes (const UDBElement &book_search_result) |
| void | addNote (const UDBElement &book_search_result, const std::string ¬e_txt) |
| void | removeNote (const UDBElement ¬e) |
The NotesKeeper class.
This class keeps notes databse and provides methods to work with it.
| NotesKeeper::NotesKeeper | ( | const std::shared_ptr< MLBookProc > & | mlbp | ) |
NotesKeeper constructor.
| mlbp | Smart pointer to MLBookProc object. |
| void NotesKeeper::addNote | ( | const UDBElement & | book_search_result, |
| const std::string & | note_txt ) |
Creates or edits notes for given book. If note_text is empty, removes notes for given book.
| book_search_result | BookID::BookSearchResult object. |
| note_txt | Note text. |
| void NotesKeeper::loadNotesBase | ( | const std::filesystem::path & | base_path | ) |
Loads notes database to memory.
| base_path | Path to notes database file. |
| void NotesKeeper::removeNote | ( | const UDBElement & | note | ) |
Removes note.
| note | BaseID::BookNote object to be removed from database. |
| UDBase NotesKeeper::searchNotes | ( | const UDBElement & | book_search_result | ) |
Search notes for given book.
| book_search_result | BaseID::BookSearchResult object. |