diff options
Diffstat (limited to 'muse/muse/mplugins/mitplugin.h')
-rw-r--r-- | muse/muse/mplugins/mitplugin.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/muse/muse/mplugins/mitplugin.h b/muse/muse/mplugins/mitplugin.h new file mode 100644 index 00000000..a7ab3729 --- /dev/null +++ b/muse/muse/mplugins/mitplugin.h @@ -0,0 +1,39 @@ +//========================================================= +// MusE +// Linux Music Editor +// $Id: mitplugin.h,v 1.1.1.1.2.1 2007/01/27 14:52:43 spamatica Exp $ +// +// (C) Copyright 2001 Werner Schweer (ws@seh.de) +//========================================================= + +#ifndef __MITPLUGIN_H__ +#define __MITPLUGIN_H__ + +#include <list> + +class MEvent; +class Xml; + +//--------------------------------------------------------- +// MITPlugin +// midi input transform plugin +//--------------------------------------------------------- + +class MITPlugin { + public: + virtual ~MITPlugin(){} + virtual void process(MEvent& event) = 0; + virtual void readStatus(Xml&) {} + virtual void writeStatus(int, Xml&) const {} + }; + +typedef std::list<MITPlugin*> MITPluginList; +typedef MITPluginList::iterator iMITPlugin; + +extern MITPluginList mitPlugins; +extern void processMidiInputTransformPlugins(MEvent&); +extern void writeStatusMidiInputTransformPlugins(int, Xml&); +extern void readStatusMidiInputTransformPlugin(Xml&); + +#endif + |