|
MLBookProc 2.1
|
#include <OpenBook.h>
Public Member Functions | |
| OpenBook (const std::shared_ptr< MLBookProc > &mlbp) | |
| OpenBook constructor. | |
| void | openBook (const UDBElement &book_search_result, const std::filesystem::path &unpacking_directory, std::function< void(const std::filesystem::path &)> open_call_back) |
The OpenBook class.
This class contains methods for books opening.
| OpenBook::OpenBook | ( | const std::shared_ptr< MLBookProc > & | mlbp | ) |
OpenBook constructor.
| mlbp | Smart pointer to MLBookProc object. |
| void OpenBook::openBook | ( | const UDBElement & | book_search_result, |
| const std::filesystem::path & | unpacking_directory, | ||
| std::function< void(const std::filesystem::path &)> | open_call_back ) |
Opens given book. If book is in archive, unpacks book to unpacking_directory.
| book_search_result | BaseID::BookSearchResult object, containing book to be opened. |
| unpacking_directory | Path to directory book to be unpacked to. Attantion! If this directory exists, all its content will be removed. |
| open_call_back | This function will be called at the end of operation with path to book as parameter. |