+ getMetatag*(

This commit is contained in:
kelson42 2010-07-04 18:11:25 +00:00
parent 3555e4f918
commit 5891b91433
2 changed files with 178 additions and 171 deletions

View File

@ -76,7 +76,15 @@ string Reader::getMainPageUrl() {
}
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 */
@ -220,6 +228,4 @@ bool Reader::getNextSuggestion(string &title) {
return retVal;
}
}

View File

@ -24,6 +24,7 @@ namespace kiwix {
string getRandomPageUrl();
string getFirstPageUrl();
string getMainPageUrl();
bool getMetatag(const string &url, string &content);
bool getContentByUrl(const string &url, string &content, unsigned int &contentLength, string &contentType);
bool searchSuggestions(const string &prefix, unsigned int suggestionsCount);
bool getNextSuggestion(string &title);