mirror of https://github.com/kiwix/libkiwix.git
+ bool Manager::setBookIndex(const string id, const string path)
This commit is contained in:
parent
baf8e37b4f
commit
45fccb2e38
|
@ -427,6 +427,10 @@ namespace kiwix {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Manager::setBookIndex(const string id, const string path) {
|
||||||
|
return this->setBookIndex(id, path, XAPIAN);
|
||||||
|
}
|
||||||
|
|
||||||
bool Manager::setBookPath(const string id, const string path) {
|
bool Manager::setBookPath(const string id, const string path) {
|
||||||
std::vector<kiwix::Book>::iterator itr;
|
std::vector<kiwix::Book>::iterator itr;
|
||||||
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
for ( itr = library.books.begin(); itr != library.books.end(); ++itr ) {
|
||||||
|
|
|
@ -54,6 +54,7 @@ namespace kiwix {
|
||||||
bool setCurrentBookId(const string id);
|
bool setCurrentBookId(const string id);
|
||||||
string getCurrentBookId();
|
string getCurrentBookId();
|
||||||
bool setBookIndex(const string id, const string path, const supportedIndexType type);
|
bool setBookIndex(const string id, const string path, const supportedIndexType type);
|
||||||
|
bool setBookIndex(const string id, const string path);
|
||||||
bool setBookPath(const string id, const string path);
|
bool setBookPath(const string id, const string path);
|
||||||
string addBookFromPathAndGetId(const string pathToOpen, const string pathToSave = "", const string url = "",
|
string addBookFromPathAndGetId(const string pathToOpen, const string pathToSave = "", const string url = "",
|
||||||
const bool checkMetaData = false);
|
const bool checkMetaData = false);
|
||||||
|
|
Loading…
Reference in New Issue