Boxing timer class.
More...
#include <boxingtimer.h>
Boxing timer class.
- Author
- Claudio Maradonna claud.nosp@m.io@u.nosp@m.nitoo.nosp@m..pw
Inherit QTimer class and add some properties to handle rest and rounds for training
◆ Status
Define the status of the timer Some statuses are not saved, they are used to activate something.
Enumerator |
---|
Default | |
Start | |
Rest | |
Pause | |
Reset | |
Stop | |
◆ BoxingTimer()
BoxingTimer::BoxingTimer |
( |
| ) |
|
|
explicit |
◆ activeChanged
void BoxingTimer::activeChanged |
( |
| ) |
|
|
signal |
◆ applyStatus
void BoxingTimer::applyStatus |
( |
| ) |
|
|
slot |
Apply status and exec relative functions.
◆ getPreset()
const QString BoxingTimer::getPreset |
( |
| ) |
|
- Returns
- the loaded preset for timer
◆ getStatus()
Status BoxingTimer::getStatus |
( |
| ) |
|
|
inline |
- Returns
- actual status - enum value
◆ loadPreset()
void BoxingTimer::loadPreset |
( |
const QString & |
preset | ) |
|
Load the preset to change settings of timer.
- Parameters
-
◆ presetChanged
void BoxingTimer::presetChanged |
( |
| ) |
|
|
signal |
◆ remainingTimeToString()
const QString BoxingTimer::remainingTimeToString |
( |
| ) |
|
◆ remainingTimeToStringChanged
void BoxingTimer::remainingTimeToStringChanged |
( |
| ) |
|
|
signal |
◆ restore()
void BoxingTimer::restore |
( |
| ) |
|
◆ roundsToString()
const QString BoxingTimer::roundsToString |
( |
| ) |
|
◆ roundsToStringChanged
void BoxingTimer::roundsToStringChanged |
( |
| ) |
|
|
signal |
◆ setStatus()
void BoxingTimer::setStatus |
( |
const Status & |
status | ) |
|
- Parameters
-
- Returns
- Setter for status
◆ start()
void BoxingTimer::start |
( |
const int & |
milliseconds | ) |
|
|
protected |
◆ statusChanged
void BoxingTimer::statusChanged |
( |
| ) |
|
|
signal |
◆ stop()
void BoxingTimer::stop |
( |
| ) |
|
|
protected |
◆ updateRemainingMilliseconds
void BoxingTimer::updateRemainingMilliseconds |
( |
| ) |
|
|
slot |
Switch milliseconds from round to rest and back.
The documentation for this class was generated from the following files: