20 #ifndef JUCECONNECTIONTIMER_H_INCLUDED
21 #define JUCECONNECTIONTIMER_H_INCLUDED
24 #include "JuceHeader.h"
32 namespace wonderjuce {
67 ConnectionTimer* createConnectionTimer(
int intervalMs);
78 #endif // JUCECONNECTIONTIMER_H_INCLUDED
void setListener(Listener *listener)
Sets the listener whose timeout() method must be called when the timer runs out.
Definition: JuceConnectionTimer.cpp:39
~JuceConnectionTimer()
Destructor.
Definition: JuceConnectionTimer.cpp:35
An implementation of wonder::ConnectionTimer using the Timer class of JUCE.
Definition: JuceConnectionTimer.h:37
An interface for a factory class that creates ConnectionTimers.
Definition: ConnectionTimer.h:72
A listener that must be notified by the timer on timeout.
Definition: ConnectionTimer.h:37
void stop()
Stops the timer.
Definition: JuceConnectionTimer.cpp:49
void start()
Starts the timer.
Definition: JuceConnectionTimer.cpp:44
JuceConnectionTimer(int intervalMs)
Constructor.
Definition: JuceConnectionTimer.cpp:30
static wonder::ConnectionTimer::Factory * getFactory()
A singleton-getter returning a wonder::ConnectionTimer::Factory that creates instances of JuceConnect...
Definition: JuceConnectionTimer.cpp:24
An interface defining a cyclic timer (to be used as a watchdog for connection timeouts) along with li...
Definition: ConnectionTimer.h:29