Get information about the total number of book of a search.

When we do a search and paging the result, we need to display to the
user the total number of book, not only the `itemsPerPage`.

So, we need to parse correctly the xml to keep information of the total
number of book.
This commit is contained in:
Matthieu Gautier
2018-11-02 17:04:55 +01:00
parent 5f4c04e79e
commit 9ab44e6a5f
2 changed files with 13 additions and 1 deletions

View File

@ -196,7 +196,10 @@ class Manager
std::string writableLibraryPath;
std::vector<std::string> bookIdList;
bool m_hasSearchResult = false;
uint64_t m_totalBooks = 0;
uint64_t m_startIndex = 0;
uint64_t m_itemsPerPage = 0;
protected:
kiwix::LibraryManipulator* manipulator;