mirror of https://github.com/kiwix/kiwix-tools.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
|
|
#include <iostream>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <kiwix/manager.h>
|
|
#include <pathTools.h>
|
|
#include <componentTools.h>
|
|
#include <regexTools.h>
|
|
|
|
class ContentManager
|
|
{
|
|
public:
|
|
ContentManager(int);
|
|
bool OpenLibraryFromFile(string, bool);
|
|
bool OpenLibraryFromText(string&, bool);
|
|
bool WriteLibrary();
|
|
bool WriteLibraryToFile(string&);
|
|
bool AddBookFromPath(string&);
|
|
bool RemoveBookById(string&);
|
|
bool SetCurrentBookId(string&);
|
|
string GetCurrentBookId();
|
|
bool GetBookById(string&, string&, string&,
|
|
string&, string&, string&,
|
|
string&, string&, string&,
|
|
string&, string&, string&,
|
|
string&, string&);
|
|
bool UpdateBookLastOpenDateById(string&);
|
|
unsigned int GetBookCount(bool, bool);
|
|
const char* GetListNextBookId();
|
|
bool SetBookIndex(string&, string&, string&);
|
|
bool SetBookPath(string&, string&);
|
|
string GetBooksLanguages();
|
|
string GetBooksPublishers();
|
|
bool ListBooks(string&, string&, unsigned int, string&, string&, string&);
|
|
protected:
|
|
kiwix::Manager manager;
|
|
|
|
};
|