mirror of https://github.com/kiwix/libkiwix.git
+ getMetatag*(
This commit is contained in:
parent
3555e4f918
commit
5891b91433
|
@ -76,7 +76,15 @@ string Reader::getMainPageUrl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Return a metatag value */
|
||||||
|
bool Reader::getMetatag(const string &name, string &value) {
|
||||||
|
unsigned int contentLength = 0;
|
||||||
|
string contentType = "";
|
||||||
|
|
||||||
|
return this->getContentByUrl( "/M/" + name, value,
|
||||||
|
contentLength, contentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the first page URL */
|
/* Return the first page URL */
|
||||||
|
@ -220,6 +228,4 @@ bool Reader::getNextSuggestion(string &title) {
|
||||||
|
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ namespace kiwix {
|
||||||
string getRandomPageUrl();
|
string getRandomPageUrl();
|
||||||
string getFirstPageUrl();
|
string getFirstPageUrl();
|
||||||
string getMainPageUrl();
|
string getMainPageUrl();
|
||||||
|
bool getMetatag(const string &url, string &content);
|
||||||
bool getContentByUrl(const string &url, string &content, unsigned int &contentLength, string &contentType);
|
bool getContentByUrl(const string &url, string &content, unsigned int &contentLength, string &contentType);
|
||||||
bool searchSuggestions(const string &prefix, unsigned int suggestionsCount);
|
bool searchSuggestions(const string &prefix, unsigned int suggestionsCount);
|
||||||
bool getNextSuggestion(string &title);
|
bool getNextSuggestion(string &title);
|
||||||
|
|
Loading…
Reference in New Issue