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 M_PLAYER_QUIT = 'plqt', 28 }; 29 30 class MainApp : public BApplication { 31 public: 32 MainApp(); 33 virtual ~MainApp(); 34 35 BWindow* NewWindow(); 36 37 private: 38 virtual void RefsReceived(BMessage* message); 39 virtual void ArgvReceived(int32 argc, char** argv); 40 virtual void MessageReceived(BMessage* message); 41 virtual void AboutRequested(); 42 43 private: 44 int32 fPlayerCount; 45 BWindow* fFirstWindow; 46 }; 47 48 extern MainApp* gMainApp; 49 50 #endif 51