diff --git a/src/common/kiwix/indexer.cpp b/src/common/kiwix/indexer.cpp index ce6d523dc..c2941cd91 100644 --- a/src/common/kiwix/indexer.cpp +++ b/src/common/kiwix/indexer.cpp @@ -47,7 +47,7 @@ namespace kiwix { //this->readStopWordsFile("/home/kelson/kiwix/moulinkiwix/stopwords/fr"); } - bool Indexer::setZimFilePath(const string &zimfilePath) { + bool Indexer::setZimFilePath(const string &zimFilePath) { /* Open the ZIM file */ this->zimFileHandler = new zim::File(zimFilePath); @@ -62,12 +62,15 @@ namespace kiwix { } bool Indexer::start() { + return true; } bool Indexer::stop() { + return true; } - unsigned Indexer::isRunning() { + bool Indexer::isRunning() { + return true; } void Indexer::setCurrentArticleOffset(unsigned int offset) { diff --git a/src/common/kiwix/indexer.h b/src/common/kiwix/indexer.h index c53901e74..f97dc3075 100644 --- a/src/common/kiwix/indexer.h +++ b/src/common/kiwix/indexer.h @@ -56,6 +56,15 @@ namespace kiwix { virtual void indexNextPercentPost() = 0; virtual void stopIndexing() = 0; + /* General */ + bool setZimFilePath(const string &zimFilePath); + bool start(); + bool stop(); + bool isRunning(); + void setCurrentArticleOffset(unsigned int offset); + unsigned int getCurrentArticleOffset(); + unsigned int getProgression(); + /* ZIM file handling */ zim::File* zimFileHandler; zim::size_type firstArticleOffset;