Delimited kiwix::Filter's public and private APIs

This commit is contained in:
Veloman Yunkan 2021-04-11 19:27:26 +04:00
parent 2f3f1a4859
commit 29a6a34ecf
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,7 @@ namespace kiwix
{
class OPDSDumper;
class Library;
enum supportedListSortBy { UNSORTED, TITLE, SIZE, DATE, CREATOR, PUBLISHER };
enum supportedListMode {
@ -110,6 +111,9 @@ class Filter {
const std::string& getQuery() const { return _query; }
bool queryIsPartial() const { return _queryIsPartial; }
private:
friend class Library;
bool accept(const Book& book) const;
bool acceptByQueryOnly(const Book& book) const;
bool acceptByNonQueryCriteria(const Book& book) const;