OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_ActionBroadcaster.h>
Public Member Functions | |
ActionBroadcaster () | |
virtual | ~ActionBroadcaster () |
void | addActionListener (ActionListener *listener) |
void | removeActionListener (ActionListener *listener) |
void | removeAllActionListeners () |
void | sendActionMessage (const String &message) const |
Manages a list of ActionListeners, and can send them messages.
To quickly add methods to your class that can add/remove action listeners and broadcast to them, you can derive from this.
Definition at line 36 of file juce_ActionBroadcaster.h.
juce::ActionBroadcaster::ActionBroadcaster | ( | ) |
Creates an ActionBroadcaster.
Definition at line 52 of file juce_ActionBroadcaster.cpp.
|
virtual |
Destructor.
Definition at line 58 of file juce_ActionBroadcaster.cpp.
void juce::ActionBroadcaster::addActionListener | ( | ActionListener * | listener | ) |
Adds a listener to the list. Trying to add a listener that's already on the list will have no effect.
Definition at line 64 of file juce_ActionBroadcaster.cpp.
void juce::ActionBroadcaster::removeActionListener | ( | ActionListener * | listener | ) |
Removes a listener from the list. If the listener isn't on the list, this won't have any effect.
Definition at line 72 of file juce_ActionBroadcaster.cpp.
void juce::ActionBroadcaster::removeAllActionListeners | ( | ) |
Removes all listeners from the list.
Definition at line 78 of file juce_ActionBroadcaster.cpp.
Broadcasts a message to all the registered listeners.
Definition at line 84 of file juce_ActionBroadcaster.cpp.