![]() |
PosturePerfection
|
Timer which countdowns and stops a PostureEstimating::MessageTimer if countdown ends.
More...
#include <posture_estimator.h>


Public Member Functions | |
| StopTimer (MessageTimer *toStop, size_t time) | |
Constructor for PostureEstimating::StopTimer More... | |
| ~StopTimer () | |
Deconstructor for PostureEstimating::StopTimer More... | |
| void | countdown () |
Starts countdown, stopping PostureEstimating::MessageTimer if countdown reached. More... | |
| void | stopCountdown () |
Stops the countdown and doesn't stop PostureEstimating::MessageTimer More... | |
| void | timerEvent () |
Runs stopCountdown() on PostureEstimating::MessageTimer More... | |
Data Fields | |
| size_t | time |
| The time to wait before stopping MessageTimer countdown. More... | |
| bool | running |
| Boolen which indicates if timer is running (True = running) More... | |
Timer which countdowns and stops a PostureEstimating::MessageTimer if countdown ends.
| PostureEstimating::StopTimer::StopTimer | ( | MessageTimer * | toStop, |
| size_t | time | ||
| ) |
Constructor for PostureEstimating::StopTimer
| toStop | PostureEstimating::MessageTimer that is stopped when countdown finishes |
| time | The time countdown runs for before stopping PostureEstimating::MessageTimer countdown |
| PostureEstimating::StopTimer::~StopTimer | ( | ) |
Deconstructor for PostureEstimating::StopTimer
| void PostureEstimating::StopTimer::countdown | ( | ) |
Starts countdown, stopping PostureEstimating::MessageTimer if countdown reached.
| void PostureEstimating::StopTimer::stopCountdown | ( | ) |
Stops the countdown and doesn't stop PostureEstimating::MessageTimer
| void PostureEstimating::StopTimer::timerEvent | ( | void | ) |
| bool PostureEstimating::StopTimer::running |
Boolen which indicates if timer is running (True = running)
| size_t PostureEstimating::StopTimer::time |
The time to wait before stopping MessageTimer countdown.