Open-Typer
Open source typewriting tutor program
Loading...
Searching...
No Matches
CharacterRecord.h
1/*
2 * CharacterRecord.h
3 * This file is part of Open-Typer
4 *
5 * Copyright (C) 2022-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 CHARACTERRECORD_H
22#define CHARACTERRECORD_H
23
24#include <QObject>
25
31class Q_DECL_EXPORT CharacterRecord
32{
33 Q_GADGET
34 Q_PROPERTY(QString keyText READ keyText WRITE setKeyText)
35 Q_PROPERTY(int hits READ hits WRITE setHits)
36 public:
37 QString keyText(void) { return m_keyText; };
38 void setKeyText(QString text) { m_keyText = text; };
39 int hits(void) { return m_hits; };
40 void setHits(int count) { m_hits = count; };
41
42 private:
43 QString m_keyText;
44 int m_hits;
45};
46
47#endif // CHARACTERRECORD_H
The CharacterRecord class can be used to store character records.
Definition CharacterRecord.h:32