mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Update kiwix::book to use libzim structure
Some methods in kiwix::Book uses wrapper structure reader. This usage should be extended from the native libzim structure zim::Archive
This commit is contained in:
committed by
Matthieu Gautier
parent
b4f7dfa5a2
commit
8b12434ff2
@ -26,6 +26,10 @@ namespace pugi {
|
||||
class xml_node;
|
||||
}
|
||||
|
||||
namespace zim {
|
||||
class Archive;
|
||||
}
|
||||
|
||||
namespace kiwix
|
||||
{
|
||||
|
||||
@ -43,6 +47,7 @@ class Book
|
||||
|
||||
bool update(const Book& other);
|
||||
void update(const Reader& reader);
|
||||
void update(const zim::Archive& archive);
|
||||
void updateFromXml(const pugi::xml_node& node, const std::string& baseDir);
|
||||
void updateFromOpds(const pugi::xml_node& node, const std::string& urlHost);
|
||||
std::string getHumanReadableIdFromPath() const;
|
||||
|
Reference in New Issue
Block a user