Current status of the indexing process. More...
#include <indexingprogress.hpp>
Public Member Functions | |
IndexingProgress () | |
~IndexingProgress () | |
QString | errorLog () const |
void | incrementDoneDocument () |
Increments the processed document count. | |
void | incrementFailedDocument (const QString &error) |
Increments the failed document count and save the error message in the log. | |
void | initialize (int expectedDocumentCount) |
Initializes the status with the total document count. | |
QString | status () const |
Returns a string for the current status. |
Current status of the indexing process.
IndexingProgress::IndexingProgress | ( | ) |
IndexingProgress::~IndexingProgress | ( | ) |
QString IndexingProgress::errorLog | ( | ) | const |
void IndexingProgress::incrementDoneDocument | ( | ) |
Increments the processed document count.
Thread-safe.
void IndexingProgress::incrementFailedDocument | ( | const QString & | error | ) |
Increments the failed document count and save the error message in the log.
Thread-safe.
void IndexingProgress::initialize | ( | int | expectedDocumentCount | ) |
Initializes the status with the total document count.
QString IndexingProgress::status | ( | ) | const |
Returns a string for the current status.
Thread-safe.
String format "d/t done (XX%) [f has failed]" with
d : documents processed (including failed documents)
t : total expected documents
f : count of failed documents