xref: /haiku/src/apps/midiplayer/MidiPlayerApp.h (revision ef2769426fe2a0bec2985377f99752d8a2cc2c3b)
10fe1abb5Smahlzeit /*
20fe1abb5Smahlzeit  * Copyright (c) 2004 Matthijs Hollemans
3*ef276942SJohn Scipione  * Copyright (c) 2008-2014 Haiku, Inc. All rights reserved.
40fe1abb5Smahlzeit  *
50fe1abb5Smahlzeit  * Permission is hereby granted, free of charge, to any person obtaining a
60fe1abb5Smahlzeit  * copy of this software and associated documentation files (the "Software"),
70fe1abb5Smahlzeit  * to deal in the Software without restriction, including without limitation
80fe1abb5Smahlzeit  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
90fe1abb5Smahlzeit  * and/or sell copies of the Software, and to permit persons to whom the
100fe1abb5Smahlzeit  * Software is furnished to do so, subject to the following conditions:
110fe1abb5Smahlzeit  *
120fe1abb5Smahlzeit  * The above copyright notice and this permission notice shall be included in
130fe1abb5Smahlzeit  * all copies or substantial portions of the Software.
140fe1abb5Smahlzeit  *
150fe1abb5Smahlzeit  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
160fe1abb5Smahlzeit  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
170fe1abb5Smahlzeit  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
180fe1abb5Smahlzeit  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
190fe1abb5Smahlzeit  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
200fe1abb5Smahlzeit  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
210fe1abb5Smahlzeit  * DEALINGS IN THE SOFTWARE.
220fe1abb5Smahlzeit  */
2342bcaa84SJohn Scipione #ifndef _MIDI_PLAYER_APP_H
2442bcaa84SJohn Scipione #define _MIDI_PLAYER_APP_H
2542bcaa84SJohn Scipione 
260fe1abb5Smahlzeit 
270fe1abb5Smahlzeit #include <Application.h>
280fe1abb5Smahlzeit 
2942bcaa84SJohn Scipione 
301f8b22efSAxel Dörfler #define MIDI_PLAYER_SIGNATURE  "application/x-vnd.Haiku-MidiPlayer"
310fe1abb5Smahlzeit 
3242bcaa84SJohn Scipione 
330fe1abb5Smahlzeit class MidiPlayerWindow;
340fe1abb5Smahlzeit 
351f8b22efSAxel Dörfler class MidiPlayerApp : public BApplication {
360fe1abb5Smahlzeit 	public:
370fe1abb5Smahlzeit 		MidiPlayerApp();
380fe1abb5Smahlzeit 
390fe1abb5Smahlzeit 		virtual void ReadyToRun();
400fe1abb5Smahlzeit 		virtual void AboutRequested();
410fe1abb5Smahlzeit 		virtual void RefsReceived(BMessage* msg);
420fe1abb5Smahlzeit 		virtual void ArgvReceived(int32 argc, char** argv);
430fe1abb5Smahlzeit 
440fe1abb5Smahlzeit 	private:
450fe1abb5Smahlzeit 		typedef BApplication super;
460fe1abb5Smahlzeit 		MidiPlayerWindow* window;
470fe1abb5Smahlzeit };
480fe1abb5Smahlzeit 
4942bcaa84SJohn Scipione 
5042bcaa84SJohn Scipione #endif // _MIDI_PLAYER_APP_H
51