From 29a6a34ecf161dd87161beffcef8cc4713b61a44 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Sun, 11 Apr 2021 19:27:26 +0400 Subject: [PATCH] Delimited kiwix::Filter's public and private APIs --- include/library.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/library.h b/include/library.h index 7c806ed6d..fd5816882 100644 --- a/include/library.h +++ b/include/library.h @@ -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;