OpenShot Library | OpenShotAudio  0.2.1
juce_ActionListener.h
1 
2 /** @weakgroup juce_events-broadcasters
3  * @{
4  */
5 /*
6  ==============================================================================
7 
8  This file is part of the JUCE library.
9  Copyright (c) 2017 - ROLI Ltd.
10 
11  JUCE is an open source library subject to commercial or open-source
12  licensing.
13 
14  The code included in this file is provided under the terms of the ISC license
15  http://www.isc.org/downloads/software-support-policy/isc-license. Permission
16  To use, copy, modify, and/or distribute this software for any purpose with or
17  without fee is hereby granted provided that the above copyright notice and
18  this permission notice appear in all copies.
19 
20  JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21  EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22  DISCLAIMED.
23 
24  ==============================================================================
25 */
26 
27 namespace juce
28 {
29 
30 //==============================================================================
31 /**
32  Interface class for delivery of events that are sent by an ActionBroadcaster.
33 
34  @see ActionBroadcaster, ChangeListener
35 
36  @tags{Events}
37 */
39 {
40 public:
41  /** Destructor. */
42  virtual ~ActionListener() = default;
43 
44  /** Overridden by your subclass to receive the callback.
45 
46  @param message the string that was specified when the event was triggered
47  by a call to ActionBroadcaster::sendActionMessage()
48  */
49  virtual void actionListenerCallback (const String& message) = 0;
50 };
51 
52 } // namespace juce
53 
54 /** @}*/
#define JUCE_API
This macro is added to all JUCE public class declarations.
Interface class for delivery of events that are sent by an ActionBroadcaster.
The JUCE String class!
Definition: juce_String.h:42