Matthieu Gautier
139b561253
Make the `Manager` keep a `shared_ptr` instead of a raw Library reference.
...
We want to be sure that `Library` actually exists when we modify it.
While it is not a silver bullet (user can still create a shared_ptr on
a raw pointer), making the `Manager` keep `shared_ptr` on the library
help us a lot here.
2023-09-25 16:30:56 +02:00
Matthieu Gautier
c203e07ee9
Make the library creatable only within a shared_ptr.
2023-09-25 16:28:25 +02:00
Veloman Yunkan
eb002ae306
Deprecated Book::getLanguage()
...
Introduced `Book::getCommaSeparatedLanguages()` instead.
2023-03-08 15:24:53 +01:00
Veloman Yunkan
3aeeeeee76
Manager::reload()
2021-11-30 18:20:27 +04:00
Matthieu Gautier
b70c92cade
Move back used helper functions to the public API.
...
- Add docstring
- Move the declaration in kiwix namespace.
- Adapt our include to include the right headers.
2021-07-07 14:43:13 +02:00
Matthieu Gautier
fa83a61a54
Move all public *Tools.h in src.
...
This by definition remove all the tool functions from the public API.
2021-07-07 14:43:13 +02:00
Veloman Yunkan
0c7d19ab45
Testing of Manager.readXml()
2021-04-12 15:14:12 +02:00
Matthieu Gautier
17bc1a3e1a
[TEST] Do not try to use the bookId if it is wrong.
2021-01-26 17:53:25 +01:00
luddens
0630298fb9
Manager::addBookFromPathAndGetId unit test
2020-04-28 10:56:12 +02:00