|
Cute Chess
0.1
|
PGN database. More...
#include <pgndatabase.h>
Public Types | |
| enum | Status { Ok, Modified, DoesNotExist, Unreadable, Corrupted } |
Public Member Functions | |
| QString | displayName () const |
| QList< const PgnGameEntry * > | entries () const |
| QString | fileName () const |
| Status | game (const PgnGameEntry *entry, PgnGame *game) |
| QDateTime | lastModified () const |
| PgnDatabase (const QString &fileName, QObject *parent=nullptr) | |
| void | setDisplayName (const QString &displayName) |
| void | setEntries (const QList< const PgnGameEntry * > &entries) |
| void | setLastModified (const QDateTime &lastModified) |
| Status | status () const |
| virtual | ~PgnDatabase () |
PGN database.
| enum PgnDatabase::Status |
Constructs a new PgnDatabase with parent and fileName as the underlying database.
|
virtual |
Destroys the database and the game entries it contains.
| QString PgnDatabase::displayName | ( | ) | const |
Returns the display name of this database.
| QList< const PgnGameEntry * > PgnDatabase::entries | ( | ) | const |
| QString PgnDatabase::fileName | ( | ) | const |
Returns the file name of this database.
| PgnDatabase::Status PgnDatabase::game | ( | const PgnGameEntry * | entry, |
| PgnGame * | game | ||
| ) |
Reads game from the database using entry.
| QDateTime PgnDatabase::lastModified | ( | ) | const |
Returns the last recorded modification time of this database.
| void PgnDatabase::setDisplayName | ( | const QString & | displayName | ) |
Set the display name of this database to displayName.
| void PgnDatabase::setEntries | ( | const QList< const PgnGameEntry * > & | entries | ) |
Set the game entries found in this database to entries.
The database takes ownership of the PgnGameEntry objects in entries.
| void PgnDatabase::setLastModified | ( | const QDateTime & | lastModified | ) |
Sets the modification time of this database.
| PgnDatabase::Status PgnDatabase::status | ( | ) | const |
Returns the current status of this database.
1.8.11