xref: /haiku/src/apps/diskusage/VolumeView.h (revision dde4ac438661765184581a6aeb2cd098d6b1a06f)
1 /*
2  * Copyright (c) 2010 Philippe Saint-Pierre, stpere@gmail.com
3  * All rights reserved. Distributed under the terms of the MIT license.
4  *
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 
10 #ifndef VOLUMETAB_VIEW_H
11 #define VOLUMETAB_VIEW_H
12 
13 #include <View.h>
14 
15 class BButton;
16 class BPath;
17 class BStringView;
18 class BVolume;
19 class PieView;
20 class MainWindow;
21 class StatusView;
22 
23 struct FileInfo;
24 
25 
26 class VolumeView: public BView {
27 
28 public:
29 								VolumeView(const char* name, BVolume* volume);
30 	virtual						~VolumeView();
31 
32 	virtual	void				MessageReceived(BMessage* message);
33 			void				SetRescanEnabled(bool enabled);
34 			void				SetPath(BPath path);
35 			void				ShowInfo(const FileInfo* info);
36 
37 private:
38 	PieView*			fPieView;
39 	StatusView*			fStatusView;
40 };
41 
42 
43 
44 #endif
45