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