Open-Typer
Open source typewriting tutor program
Loading...
Searching...
No Matches
HistoryEntry.h
1
/*
2
* HistoryEntry.h
3
* This file is part of Open-Typer
4
*
5
* Copyright (C) 2023 - adazem009
6
*
7
* Open-Typer is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* Open-Typer is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with Open-Typer. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef HISTORYENTRY_H
22
#define HISTORYENTRY_H
23
24
#include <QObject>
25
27
class
Q_DECL_EXPORT
HistoryEntry
28
{
29
Q_GADGET
30
Q_PROPERTY(
int
grossHitsPerMinute READ grossHitsPerMinute WRITE setGrossHitsPerMinute)
31
Q_PROPERTY(
int
mistakes READ mistakes WRITE setMistakes)
32
Q_PROPERTY(
int
timeSecs READ timeSecs WRITE setTimeSecs)
33
public:
34
HistoryEntry
();
35
HistoryEntry
(
int
grossHitsPerMinute,
int
mistakes,
int
timeSecs);
36
int
grossHitsPerMinute(
void
);
37
void
setGrossHitsPerMinute(
int
value);
38
int
mistakes(
void
);
39
void
setMistakes(
int
value);
40
int
timeSecs(
void
);
41
void
setTimeSecs(
int
value);
42
43
private:
44
int
m_grossHitsPerMinute = 0;
45
int
m_mistakes = 0;
46
int
m_timeSecs = 0;
47
};
48
49
#endif
// HISTORYENTRY_H
HistoryEntry
The HistoryEntry class is an entry in the exercise history.
Definition
HistoryEntry.h:28
src
history
internal
HistoryEntry.h
Generated by
1.9.8