mirror of https://github.com/kiwix/libkiwix.git
Be able to create a OPDSDumper without library and associate it later.
This commit is contained in:
parent
ad92af928b
commit
b48428e443
|
@ -44,6 +44,7 @@ namespace kiwix
|
||||||
class OPDSDumper
|
class OPDSDumper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
OPDSDumper() = default;
|
||||||
OPDSDumper(Library library);
|
OPDSDumper(Library library);
|
||||||
~OPDSDumper();
|
~OPDSDumper();
|
||||||
|
|
||||||
|
@ -76,6 +77,13 @@ class OPDSDumper
|
||||||
*/
|
*/
|
||||||
void setRootLocation(const std::string& rootLocation) { this->rootLocation = rootLocation; }
|
void setRootLocation(const std::string& rootLocation) { this->rootLocation = rootLocation; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the library to dump.
|
||||||
|
*
|
||||||
|
* @param library The library to dump.
|
||||||
|
*/
|
||||||
|
void setLibrary(Library library) { this->library = library; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
kiwix::Library library;
|
kiwix::Library library;
|
||||||
std::string id;
|
std::string id;
|
||||||
|
|
Loading…
Reference in New Issue