vfs: check userland buffers before reading them.
[haiku.git] / src / apps / diskusage / InfoWindow.h
blob5d47e67da5a122786331732bc3dcc38ca350a279
1 /*
2 * Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>. All rights reserved.
3 * Distributed under the terms of the MIT/X11 license.
5 * Copyright (c) 1999 Mike Steed. You are free to use and distribute this software
6 * as long as it is accompanied by it's documentation and this copyright notice.
7 * The software comes with no warranty, etc.
8 */
9 #ifndef INFO_WINDOW_H
10 #define INFO_WINDOW_H
13 #include <Window.h>
16 struct FileInfo;
18 class LeftView: public BView {
19 public:
20 LeftView(BRect frame, BBitmap* icon);
21 virtual ~LeftView();
23 virtual void Draw(BRect updateRect);
25 private:
26 BBitmap* fIcon;
30 class InfoWin: public BWindow {
31 public:
32 InfoWin(BPoint location, FileInfo* info,
33 BWindow* parent);
34 virtual ~InfoWin();
37 #endif // INFO_WINDOW_H