56 Q_INVOKABLE
void loadPreset(
const QString &preset);
149 void start(
const int &milliseconds);
154 int mRoundsMilliseconds;
155 int mRemainingMilliseconds;
157 void setRemainingMilliseconds(
const int &milliseconds);
158 void setRound(
const int &round);
183 #endif // BOXINGTIMER_H
BoxingTimer()
Default constructor.
Definition: boxingtimer.cpp:8
Q_INVOKABLE void loadPreset(const QString &preset)
Load the preset to change settings of timer.
Definition: boxingtimer.cpp:146
const QString remainingTimeToString()
Convert remaining milliseconds in human readable time.
Definition: boxingtimer.cpp:111
Q_INVOKABLE void restore()
Start or restore the timer.
Definition: boxingtimer.cpp:125
void stop()
Override of stop function to emit statusChanged() signal.
Definition: boxingtimer.cpp:48
const QString roundsToString()
Convert round and total rounds for view.
Definition: boxingtimer.cpp:133
Status
Define the status of the timer Some statuses are not saved, they are used to activate something...
Definition: boxingtimer.h:90
void start(const int &milliseconds)
Override of start function to emit statusChanged() signal.
Definition: boxingtimer.cpp:54
void setStatus(const Status &status)
Definition: boxingtimer.cpp:38
void roundsToStringChanged()
Status getStatus()
Definition: boxingtimer.h:104
void applyStatus()
Apply status and exec relative functions.
Definition: boxingtimer.cpp:60
void updateRemainingMilliseconds()
Switch milliseconds from round to rest and back.
Definition: boxingtimer.cpp:95
Handle settings about timer. Can save, load and delete a specific preset.
Definition: boxingsettings.h:19
Boxing timer class.
Definition: boxingtimer.h:26
void remainingTimeToStringChanged()
const QString getPreset()
Definition: boxingtimer.cpp:22