SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
wonderjuce::JuceConnectionTimer Class Reference

An implementation of wonder::ConnectionTimer using the Timer class of JUCE. More...

#include <JuceConnectionTimer.h>

Inheritance diagram for wonderjuce::JuceConnectionTimer:
Inheritance graph
[legend]
Collaboration diagram for wonderjuce::JuceConnectionTimer:
Collaboration graph
[legend]

Public Member Functions

 JuceConnectionTimer (int intervalMs)
 Constructor. More...
 
 ~JuceConnectionTimer ()
 Destructor. More...
 
void setListener (Listener *listener)
 Sets the listener whose timeout() method must be called when the timer runs out. More...
 
void start ()
 Starts the timer. More...
 
void stop ()
 Stops the timer. More...
 
- Public Member Functions inherited from wonder::ConnectionTimer
virtual ~ConnectionTimer ()
 Destructor. More...
 

Static Public Member Functions

static
wonder::ConnectionTimer::Factory
getFactory ()
 A singleton-getter returning a wonder::ConnectionTimer::Factory that creates instances of JuceConnectionTimer. More...
 

Detailed Description

An implementation of wonder::ConnectionTimer using the Timer class of JUCE.

Constructor & Destructor Documentation

wonderjuce::JuceConnectionTimer::JuceConnectionTimer ( int  intervalMs)

Constructor.

Parameters
intervalMsThe timer interval in ms.
wonderjuce::JuceConnectionTimer::~JuceConnectionTimer ( )

Destructor.

Member Function Documentation

wonder::ConnectionTimer::Factory * wonderjuce::JuceConnectionTimer::getFactory ( )
static

A singleton-getter returning a wonder::ConnectionTimer::Factory that creates instances of JuceConnectionTimer.

Returns
A wonder::ConnectionTimer::Factory that creates instances of JuceConnectionTimer.
void wonderjuce::JuceConnectionTimer::setListener ( Listener listener)
virtual

Sets the listener whose timeout() method must be called when the timer runs out.

Parameters
listenerThe listener whose timeout() method must be called when the timer runs out.

Implements wonder::ConnectionTimer.

void wonderjuce::JuceConnectionTimer::start ( )
virtual

Starts the timer.

Once started, the timer must repeatedly call its listener's timeout() method after every timer interval. (A cyclic timer, not a one-shot timer.) In case a timer was stopped and restarted, the timer must act as if it was restarted (meaning the first call to timeout() will happen after a full timer interval has passed).

Implements wonder::ConnectionTimer.

void wonderjuce::JuceConnectionTimer::stop ( )
virtual

Stops the timer.

Implements wonder::ConnectionTimer.