diff --git a/include/reader.h b/include/reader.h index 623185c9f..4001a5ff7 100644 --- a/include/reader.h +++ b/include/reader.h @@ -45,7 +45,7 @@ namespace kiwix class SuggestionItem { // Functions - public: + private: // Create a sugggestion item. explicit SuggestionItem(std::string title, std::string normalizedTitle, std::string path, std::string snippet = "") : @@ -54,6 +54,7 @@ class SuggestionItem path(path), snippet(snippet) {} + public: const std::string getTitle() {return title;} const std::string getNormalizedTitle() {return normalizedTitle;} const std::string getPath() {return path;} @@ -67,6 +68,8 @@ class SuggestionItem std::string normalizedTitle; std::string path; std::string snippet; + + friend class Reader; }; /**