mirror of https://github.com/kiwix/libkiwix.git
Delimited kiwix::Filter's public and private APIs
This commit is contained in:
parent
2f3f1a4859
commit
29a6a34ecf
|
@ -35,6 +35,7 @@ namespace kiwix
|
||||||
{
|
{
|
||||||
|
|
||||||
class OPDSDumper;
|
class OPDSDumper;
|
||||||
|
class Library;
|
||||||
|
|
||||||
enum supportedListSortBy { UNSORTED, TITLE, SIZE, DATE, CREATOR, PUBLISHER };
|
enum supportedListSortBy { UNSORTED, TITLE, SIZE, DATE, CREATOR, PUBLISHER };
|
||||||
enum supportedListMode {
|
enum supportedListMode {
|
||||||
|
@ -110,6 +111,9 @@ class Filter {
|
||||||
const std::string& getQuery() const { return _query; }
|
const std::string& getQuery() const { return _query; }
|
||||||
bool queryIsPartial() const { return _queryIsPartial; }
|
bool queryIsPartial() const { return _queryIsPartial; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class Library;
|
||||||
|
|
||||||
bool accept(const Book& book) const;
|
bool accept(const Book& book) const;
|
||||||
bool acceptByQueryOnly(const Book& book) const;
|
bool acceptByQueryOnly(const Book& book) const;
|
||||||
bool acceptByNonQueryCriteria(const Book& book) const;
|
bool acceptByNonQueryCriteria(const Book& book) const;
|
||||||
|
|
Loading…
Reference in New Issue