Move the code updating a book from a reader in the Book class.

This commit is contained in:
Matthieu Gautier
2018-09-06 11:36:03 +02:00
parent 04b05dd68b
commit 66a9a69480
3 changed files with 25 additions and 29 deletions

View File

@ -38,6 +38,7 @@ namespace kiwix
enum supportedIndexType { UNKNOWN, XAPIAN };
class OPDSDumper;
class Reader;
/**
* A class to store information about a book (a zim file)
@ -49,6 +50,7 @@ class Book
~Book();
bool update(const Book& other);
void update(const Reader& reader);
static bool sortByTitle(const Book& a, const Book& b);
static bool sortBySize(const Book& a, const Book& b);
static bool sortByDate(const Book& a, const Book& b);