Reads PGN database in a separate thread.
More...
#include <pgnimporter.h>
Reads PGN database in a separate thread.
- See also
- PgnDatabase
Import error.
| Enumerator |
|---|
| FileDoesNotExist |
The PGN file was not found.
|
| IoError |
A generic I/O error.
|
| PgnImporter::PgnImporter |
( |
const QString & |
fileName | ) |
|
Constructs a PgnImporter with fileName as database to be imported.
| void PgnImporter::databaseRead |
( |
PgnDatabase * |
database | ) |
|
|
signal |
Emitted when database is read.
| void PgnImporter::databaseReadStatus |
( |
const QTime & |
started, |
|
|
int |
numReadGames, |
|
|
qint64 |
numReadBytes |
|
) |
| |
|
signal |
Emitted periodically to give progress information about the import.
The import was initiated at started and so far numReadGames games and numReadBytes bytes have been read.
| QString PgnImporter::fileName |
( |
| ) |
const |
Returns the file name of the database to be imported.
| void PgnImporter::work |
( |
| ) |
|
|
overrideprotectedvirtual |
Perform the long running task.
Periodically check for cancelRequested() to see if the work should be cancelled.
Optionally emit the progressChanged and statusChanged to reflect the current status of the work.
If any error occurs emit the error() and statusChanged() signals and return from the function.
Implements Worker.
The documentation for this class was generated from the following files: