add OPDS search support & next/prev page navigation (upstream #1462)
This commit is contained in:
@@ -49,6 +49,9 @@ class OpdsParser final : public Print {
|
||||
~OpdsParser();
|
||||
|
||||
// Disable copy
|
||||
const std::string& getSearchTemplate() const { return searchTemplate; }
|
||||
const std::string& getNextPageUrl() const { return nextPageUrl; }
|
||||
const std::string& getPrevPageUrl() const { return prevPageUrl; }
|
||||
OpdsParser(const OpdsParser&) = delete;
|
||||
OpdsParser& operator=(const OpdsParser&) = delete;
|
||||
|
||||
@@ -85,6 +88,9 @@ class OpdsParser final : public Print {
|
||||
static void XMLCALL endElement(void* userData, const XML_Char* name);
|
||||
static void XMLCALL characterData(void* userData, const XML_Char* s, int len);
|
||||
|
||||
std::string searchTemplate;
|
||||
std::string nextPageUrl;
|
||||
std::string prevPageUrl;
|
||||
// Helper to find attribute value
|
||||
static const char* findAttribute(const XML_Char** atts, const char* name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user