![]() |
PosturePerfection
|
Broadcasts a message using RemoteNotify::Broadcast after a time is elapsed.
More...
#include <posture_estimator.h>


Public Member Functions | |
| MessageTimer (std::vector< DelayTimer * > timers, RemoteNotify::Broadcast *broadcast, std::string msg, size_t time) | |
Constructor for PostureEstimating::MessageTimer More... | |
| ~MessageTimer () | |
Deconstructor for PostureEstimating::MessageTimer More... | |
| void | countdown () |
| Starts timer to countdown, sending a messsage at the end of the countdown. More... | |
| void | stopCountdown () |
| Stops the countdown and doesn't send message. More... | |
| void | timerEvent () |
Data Fields | |
| size_t | time |
| bool | running |
| Boolen which indicates if timer is running (True = running) More... | |
Broadcasts a message using RemoteNotify::Broadcast after a time is elapsed.
| PostureEstimating::MessageTimer::MessageTimer | ( | std::vector< DelayTimer * > | timers, |
| RemoteNotify::Broadcast * | broadcast, | ||
| std::string | msg, | ||
| size_t | time | ||
| ) |
Constructor for PostureEstimating::MessageTimer
| notificationTimers | List of PostureEstimating::DelayTimers that must not be running for message to be broadcast |
| broadcaster | RemoteNotify::Broadcast used to broadcast the message |
| msg | message to be sent |
| time | The time to wait before broadcasting message |
| PostureEstimating::MessageTimer::~MessageTimer | ( | ) |
Deconstructor for PostureEstimating::MessageTimer
| void PostureEstimating::MessageTimer::countdown | ( | ) |
Starts timer to countdown, sending a messsage at the end of the countdown.
| void PostureEstimating::MessageTimer::stopCountdown | ( | ) |
Stops the countdown and doesn't send message.
| void PostureEstimating::MessageTimer::timerEvent | ( | void | ) |
Broadcasts message using RemoteNotify::Broadcast
| bool PostureEstimating::MessageTimer::running |
Boolen which indicates if timer is running (True = running)
| size_t PostureEstimating::MessageTimer::time |
The time the PostureEstimating::MessageTimer waits before broadcasting message