Public Member Functions

IndexingProgress Class Reference
[Code for the parsing/indexing task]

Current status of the indexing process. More...

#include <indexingprogress.hpp>

List of all members.

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.

Detailed Description

Current status of the indexing process.


Constructor & Destructor Documentation

IndexingProgress::IndexingProgress (  ) 
IndexingProgress::~IndexingProgress (  ) 

Member Function Documentation

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

All Classes Functions Variables Typedefs Enumerations Enumerator