1 /* 2 * MainApp.h - Media Player for the Haiku Operating System 3 * 4 * Copyright (C) 2006 Marcus Overhagen <marcus@overhagen.de> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 * 19 */ 20 #ifndef __MAIN_APP_H 21 #define __MAIN_APP_H 22 23 #include <Application.h> 24 #include "MainWin.h" 25 26 enum 27 { 28 M_PLAYER_QUIT = 'plqt', 29 }; 30 31 class MainApp : public BApplication 32 { 33 public: 34 MainApp(); 35 ~MainApp(); 36 37 BWindow * NewWindow(); 38 39 private: 40 void RefsReceived(BMessage *msg); 41 void ArgvReceived(int32 argc, char **argv); 42 void MessageReceived(BMessage *msg); 43 void AboutRequested(); 44 45 private: 46 BWindow * fFirstWindow; 47 int32 fPlayerCount; 48 }; 49 50 extern MainApp *gMainApp; 51 52 #endif 53