mirror of https://github.com/kiwix/libkiwix.git
+ new core content mgmt imp.
This commit is contained in:
parent
6cfc716c84
commit
c7fbc52e7a
|
@ -134,6 +134,15 @@ namespace kiwix {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool Manager::setCurrentBookId(const string id) {
|
||||
library.current = id;
|
||||
return true;
|
||||
}
|
||||
|
||||
string Manager::getCurrentBookId() {
|
||||
return library.current;
|
||||
}
|
||||
|
||||
bool Manager::addBookFromPath(const string path, const string url) {
|
||||
kiwix::Book book;
|
||||
|
||||
|
|
|
@ -40,6 +40,8 @@ namespace kiwix {
|
|||
bool writeFile(const string path);
|
||||
bool removeBookByIndex(const unsigned int bookIndex);
|
||||
bool removeBookById(const string id);
|
||||
bool setCurrentBookId(const string id);
|
||||
string getCurrentBookId();
|
||||
bool addBookFromPath(const string path, const string url = "");
|
||||
Library cloneLibrary();
|
||||
|
||||
|
|
Loading…
Reference in New Issue