vfs: check userland buffers before reading them.
[haiku.git] / src / apps / diskusage / MainWindow.h
blobd63933745065e58e5e1eb62af0126cf70cf3df0c
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.
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
13 #include <Window.h>
16 class BVolume;
17 class ControlsView;
18 struct FileInfo;
19 class PieView;
21 class MainWindow: public BWindow {
22 public:
23 MainWindow(BRect pieRect);
24 virtual ~MainWindow();
26 virtual void MessageReceived(BMessage* message);
27 virtual bool QuitRequested();
29 void EnableRescan();
30 void EnableCancel();
31 BVolume* FindDeviceFor(dev_t device,
32 bool invoke = false);
34 void ShowInfo(const FileInfo* info);
36 private:
37 ControlsView* fControlsView;
40 #endif // MAIN_WINDOW_H