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 class StatusView; 21 22 class MainWindow: public BWindow { 23 public: 24 MainWindow(BRect pieRect); 25 virtual ~MainWindow(); 26 27 virtual void MessageReceived(BMessage* message); 28 virtual bool QuitRequested(); 29 30 void ShowInfo(const FileInfo* info); 31 void SetRescanEnabled(bool enabled); 32 BVolume* FindDeviceFor(dev_t device, 33 bool invoke = false); 34 35 private: 36 ControlsView* fControlsView; 37 PieView* fPieView; 38 StatusView* fStatusView; 39 }; 40 41 #endif // MAIN_WINDOW_H 42