+ new core content mgmt imp.

This commit is contained in:
kelson42 2011-05-05 05:39:09 +00:00
parent 6cfc716c84
commit c7fbc52e7a
2 changed files with 11 additions and 0 deletions

View File

@ -134,6 +134,15 @@ namespace kiwix {
return true; 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) { bool Manager::addBookFromPath(const string path, const string url) {
kiwix::Book book; kiwix::Book book;

View File

@ -40,6 +40,8 @@ namespace kiwix {
bool writeFile(const string path); bool writeFile(const string path);
bool removeBookByIndex(const unsigned int bookIndex); bool removeBookByIndex(const unsigned int bookIndex);
bool removeBookById(const string id); bool removeBookById(const string id);
bool setCurrentBookId(const string id);
string getCurrentBookId();
bool addBookFromPath(const string path, const string url = ""); bool addBookFromPath(const string path, const string url = "");
Library cloneLibrary(); Library cloneLibrary();