The HistoryParser class provides functions for exercise history and statistics.
More...
#include "history/internal/HistoryParser.h"
|
void | lessonPackChanged (QString value) |
|
void | lessonChanged (int value) |
|
void | sublessonChanged (int value) |
|
void | exerciseChanged (int value) |
|
void | countChanged (int value) |
|
|
QString | lessonPack (void) |
|
void | setLessonPack (QString value) |
|
int | lesson (void) |
|
void | setLesson (int value) |
|
int | sublesson (void) |
|
void | setSublesson (int value) |
|
int | exercise (void) |
|
void | setExercise (int value) |
|
int | count (void) |
|
Q_INVOKABLE HistoryEntry | at (int index) |
|
Q_INVOKABLE void | append (HistoryEntry entry) |
|
Q_INVOKABLE void | append (int grossHitsPerMinute, int mistakes, int timeSecs) |
|
|
QString | m_lessonPack |
|
int | m_lesson = 0 |
|
int | m_sublesson = 0 |
|
int | m_exercise = 0 |
|
|
static const QString | historyFile = "/history.json" |
|
static const QString | speedProperty = "speed" |
|
static const QString | mistakesProperty = "mistakes" |
|
static const QString | timeProperty = "time" |
|
The HistoryParser class provides functions for exercise history and statistics.
◆ append()
void HistoryParser::append |
( |
int |
grossHitsPerMinute, |
|
|
int |
mistakes, |
|
|
int |
timeSecs |
|
) |
| |
Adds a new entry to the exercise history.
◆ at()
Returns an entry of the exercise history.
◆ historyDocument()
QJsonDocument HistoryParser::historyDocument |
( |
void |
| ) |
|
|
staticprivate |
Returns JSON document of the history JSON file.
◆ historyPackValue()
QJsonValue HistoryParser::historyPackValue |
( |
QString |
pack | ) |
|
|
staticprivate |
Returns JSON value of the pack history.
◆ count
Number of entries in the exercise history.
◆ exercise
int HistoryParser::exercise |
|
readwrite |
◆ lesson
int HistoryParser::lesson |
|
readwrite |
◆ lessonPack
QString HistoryParser::lessonPack |
|
readwrite |
◆ sublesson
int HistoryParser::sublesson |
|
readwrite |
The documentation for this class was generated from the following files:
- src/history/internal/HistoryParser.h
- src/history/internal/HistoryParser.cpp