Handle settings about timer. Can save, load and delete a specific preset.
More...
#include <boxingsettings.h>
Handle settings about timer. Can save, load and delete a specific preset.
QML Part of view
◆ BoxingSettings() [1/2]
| BoxingSettings::BoxingSettings |
( |
| ) |
|
◆ BoxingSettings() [2/2]
| BoxingSettings::BoxingSettings |
( |
const int & |
rounds, |
|
|
const int & |
roundMilliseconds, |
|
|
const int & |
restMilliseconds |
|
) |
| |
◆ deletePreset()
| void BoxingSettings::deletePreset |
( |
const QString & |
name | ) |
|
◆ getPreset()
| QString BoxingSettings::getPreset |
( |
| ) |
|
|
inline |
◆ getPresetName()
| QString BoxingSettings::getPresetName |
( |
| ) |
|
|
inline |
- Returns
- the human readable name of preset
◆ getRestMilliseconds()
| int BoxingSettings::getRestMilliseconds |
( |
| ) |
|
|
inline |
- Returns
- milliseconds of rest
◆ getRoundMilliseconds()
| int BoxingSettings::getRoundMilliseconds |
( |
| ) |
|
|
inline |
- Returns
- duration in milliseconds of a rounds
◆ getRounds()
| int BoxingSettings::getRounds |
( |
| ) |
|
|
inline |
◆ presetChanged
| void BoxingSettings::presetChanged |
( |
| ) |
|
|
signal |
◆ presetsList()
| const QStringList BoxingSettings::presetsList |
( |
| ) |
|
◆ savePreset()
| void BoxingSettings::savePreset |
( |
const QString & |
name, |
|
|
const int & |
rounds, |
|
|
const int & |
roundMilliseconds, |
|
|
const int & |
restMilliseconds |
|
) |
| |
Save or override settings about specific preset.
- Parameters
-
| name | string name of preset |
| rounds | int number of rounds |
| roundMilliseconds | int duration of round |
| restMilliseconds | int duration of rest |
- Author
- Claudio Maradonna claud.nosp@m.io@u.nosp@m.nitoo.nosp@m..pw
◆ setPreset()
| void BoxingSettings::setPreset |
( |
const QString & |
preset | ) |
|
Setter for preset.
- Parameters
-
◆ setRestMilliseconds()
| void BoxingSettings::setRestMilliseconds |
( |
const int & |
restMilliseconds | ) |
|
|
inline |
Setter for milliseconds of rest.
- Parameters
-
◆ setRoundMilliseconds()
| void BoxingSettings::setRoundMilliseconds |
( |
const int & |
roundMilliseconds | ) |
|
|
inline |
Setter for duration of round (in milliseconds)
- Parameters
-
◆ setRounds()
| void BoxingSettings::setRounds |
( |
const int & |
rounds | ) |
|
|
inline |
Setter for number of rounds.
- Parameters
-
The documentation for this class was generated from the following files: