1f75a7bf5SStephan Aßmus /* 2962bcf7dSStephan Aßmus * Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>. 3962bcf7dSStephan Aßmus * Copyright (c) 2009 Philippe Saint-Pierre, stpere@gmail.com 4962bcf7dSStephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. 5f75a7bf5SStephan Aßmus * 6f75a7bf5SStephan Aßmus * Copyright (c) 1999 Mike Steed. You are free to use and distribute this software 7f75a7bf5SStephan Aßmus * as long as it is accompanied by it's documentation and this copyright notice. 8f75a7bf5SStephan Aßmus * The software comes with no warranty, etc. 9f75a7bf5SStephan Aßmus */ 10f75a7bf5SStephan Aßmus #ifndef MAIN_WINDOW_H 11f75a7bf5SStephan Aßmus #define MAIN_WINDOW_H 12f75a7bf5SStephan Aßmus 13f75a7bf5SStephan Aßmus #include <Window.h> 14f75a7bf5SStephan Aßmus 15f75a7bf5SStephan Aßmus 16f75a7bf5SStephan Aßmus class BVolume; 17f75a7bf5SStephan Aßmus class ControlsView; 18f75a7bf5SStephan Aßmus struct FileInfo; 19f75a7bf5SStephan Aßmus class PieView; 2015676f3aSWim van der Meer 21f75a7bf5SStephan Aßmus class MainWindow: public BWindow { 22f75a7bf5SStephan Aßmus public: 23f75a7bf5SStephan Aßmus MainWindow(BRect pieRect); 24f75a7bf5SStephan Aßmus virtual ~MainWindow(); 25f75a7bf5SStephan Aßmus 26f75a7bf5SStephan Aßmus virtual void MessageReceived(BMessage* message); 27f75a7bf5SStephan Aßmus virtual bool QuitRequested(); 28f75a7bf5SStephan Aßmus 29*3e52a3d5SPhilippe Saint-Pierre void EnableRescan(); 30*3e52a3d5SPhilippe Saint-Pierre void EnableCancel(); 31f75a7bf5SStephan Aßmus BVolume* FindDeviceFor(dev_t device, 32f75a7bf5SStephan Aßmus bool invoke = false); 33f75a7bf5SStephan Aßmus 34dde4ac43SPhilippe Saint-Pierre void ShowInfo(const FileInfo* info); 35dde4ac43SPhilippe Saint-Pierre 36f75a7bf5SStephan Aßmus private: 37f75a7bf5SStephan Aßmus ControlsView* fControlsView; 38f75a7bf5SStephan Aßmus }; 39f75a7bf5SStephan Aßmus 40f75a7bf5SStephan Aßmus #endif // MAIN_WINDOW_H 41