#include <BookInfo.h>
Public Member Functions | |
BookInfo (const std::shared_ptr< AuxFunc > &af) | |
BookInfo constructor. | |
std::shared_ptr< BookInfoEntry > | get_book_info (const BookBaseEntry &bbe) |
Retruns information about book. | |
void | set_dpi (const double &h_dpi, const double &v_dpi) |
Sets DPI. | |
The BookInfo class.
This class contains methods to get extra information (like annotation, cover, source paper book info, etc) from books.
BookInfo::BookInfo | ( | const std::shared_ptr< AuxFunc > & | af | ) |
std::shared_ptr< BookInfoEntry > BookInfo::get_book_info | ( | const BookBaseEntry & | bbe | ) |
Retruns information about book.
See also set_dpi().
bbe | search result, returned by BaseKeeper::searchBook() method. |
void BookInfo::set_dpi | ( | const double & | h_dpi, |
const double & | v_dpi ) |
Sets DPI.
This method should be called before get_book_info(). It sets DPI to display books cover correctly. Default values are 72.0 and 72.0. It is not compulsory to call this method, but it is highly recommended.
h_dpi | horizontal HREF="https://en.wikipedia.org/wiki/Dots_per_inch">DPI. |
v_dpi | vertical HREF="https://en.wikipedia.org/wiki/Dots_per_inch">DPI. |