Hydrogen - Linux Drum Machine
Main Page | Class Hierarchy | Compound List | File List | Compound Members

EngineListener.h

00001 /*
00002  * Hydrogen
00003  * Copyright(c) 2002-2003 by Alex >Comix< Cominu [comix@users.sourceforge.net]
00004  *
00005  * http://hydrogen.sourceforge.net
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY, without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  * $Id: EngineListener.h,v 1.11 2003/06/06 20:57:19 comix Exp $
00022  *
00023  */
00024 #ifndef ENGINE_LISTENER
00025 #define ENGINE_LISTENER
00026 
00027 #include "Song.h"
00028 
00029 #include <string>
00030 using std::string;
00031 
00032 //----------------------------------------------------------------------------
00036 class EngineListener {
00037     public:
00038         virtual void stateChanged(int state) {}
00039         virtual void patternChanged() {}
00040         virtual void noteOn(Note *note) {
00041             delete note;    // the note parameter *must* be deleted..
00042         }
00043         virtual void engineError( string msg ) {}
00044 
00045         virtual void midiActivityEvent() {}
00046 };
00047 
00048 
00049 #endif
00050 

 
 
Hydrogen (c) 2002..2003 Comix