20 #ifndef CONNECTIONTIMER_H_INCLUDED
21 #define CONNECTIONTIMER_H_INCLUDED
62 virtual void start() = 0;
65 virtual void stop() = 0;
91 #endif // CONNECTIONTIMER_H_INCLUDED
virtual ~Listener()
Destructor.
Definition: ConnectionTimer.h:41
virtual ~ConnectionTimer()
Destructor.
Definition: ConnectionTimer.h:34
virtual void start()=0
Starts the timer.
An interface for a factory class that creates ConnectionTimers.
Definition: ConnectionTimer.h:72
virtual void onTimeout()=0
Must be called by the timer on timeout.
virtual void setListener(Listener *listener)=0
Sets the listener whose timeout() method must be called when the timer runs out.
A listener that must be notified by the timer on timeout.
Definition: ConnectionTimer.h:37
virtual ConnectionTimer * createConnectionTimer(int intervalMs)=0
Creates a new ConnectionTimer.
virtual void stop()=0
Stops the timer.
virtual ~Factory()
Destructor.
Definition: ConnectionTimer.h:77
An interface defining a cyclic timer (to be used as a watchdog for connection timeouts) along with li...
Definition: ConnectionTimer.h:29