Add a potential search description link in the opds stream.

This commit is contained in:
Matthieu Gautier
2018-03-26 21:28:44 +02:00
parent b48428e443
commit 2164faba44
2 changed files with 16 additions and 0 deletions

View File

@ -77,6 +77,13 @@ class OPDSDumper
*/
void setRootLocation(const std::string& rootLocation) { this->rootLocation = rootLocation; }
/**
* Set the search url.
*
* @param searchUrl the search url to use.
*/
void setSearchDescriptionUrl(const std::string& searchDescriptionUrl) { this->searchDescriptionUrl = searchDescriptionUrl; }
/**
* Set the library to dump.
*
@ -90,6 +97,7 @@ class OPDSDumper
std::string title;
std::string date;
std::string rootLocation;
std::string searchDescriptionUrl;
private:
pugi::xml_node handleBook(Book book, pugi::xml_node root_node);