/[svn]/linuxsampler/trunk/src/EventListeners.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/EventListeners.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1694 by schoenebeck, Thu Feb 14 14:58:50 2008 UTC revision 1695 by schoenebeck, Sat Feb 16 01:09:33 2008 UTC
# Line 28  namespace LinuxSampler { Line 28  namespace LinuxSampler {
28    
29      // just symbol prototyping      // just symbol prototyping
30      class SamplerChannel;      class SamplerChannel;
31        class MidiInputDevice;
32        class MidiInputPort;
33    
34      template<class L>      template<class L>
35      class ListenerList {      class ListenerList {
# Line 118  namespace LinuxSampler { Line 120  namespace LinuxSampler {
120               * @param NewCount The new number of MIDI input devices.               * @param NewCount The new number of MIDI input devices.
121               */               */
122              virtual void MidiDeviceCountChanged(int NewCount) = 0;              virtual void MidiDeviceCountChanged(int NewCount) = 0;
123    
124                /**
125                 * Invoked right before the supplied MIDI input device is going
126                 * to be destroyed.
127                 * @param pDevice MidiInputDevice to be deleted
128                 */
129                virtual void MidiDeviceToBeDestroyed(MidiInputDevice* pDevice) = 0;
130    
131                /**
132                 * Invoked to inform that a new MidiInputDevice has just been
133                 * created.
134                 * @param pDevice newly created MidiInputDevice
135                 */
136                virtual void MidiDeviceCreated(MidiInputDevice* pDevice) = 0;
137        };
138    
139        /**
140         * This class is used as a listener, which is notified
141         * when the number of MIDI input ports is changed.
142         */
143        class MidiPortCountListener {
144            public:
145                /**
146                 * Invoked when the number of MIDI input ports has changed.
147                 * @param NewCount The new number of MIDI input ports.
148                 */
149                virtual void MidiPortCountChanged(int NewCount) = 0;
150    
151                /**
152                 * Invoked right before the supplied MIDI input port is going
153                 * to be destroyed.
154                 * @param pPort MidiInputPort to be deleted
155                 */
156                virtual void MidiPortToBeRemoved(MidiInputPort* pPort) = 0;
157    
158                /**
159                 * Invoked to inform that a new MidiInputPort has just been
160                 * added.
161                 * @param pPort newly created MidiInputPort
162                 */
163                virtual void MidiPortAdded(MidiInputPort* pPort) = 0;
164      };      };
165    
166      /**      /**

Legend:
Removed from v.1694  
changed lines
  Added in v.1695

  ViewVC Help
Powered by ViewVC