btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / diskusage / ControlsView.h
blobcd7217558a827e15de43c966e4223fb3acd84ac6
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 CONTROLS_VIEW_H
10 #define CONTROLS_VIEW_H
12 #include <Button.h>
13 #include <View.h>
16 class BMessage;
17 class BVolume;
19 struct FileInfo;
21 class ControlsView: public BView {
22 public:
23 ControlsView();
24 virtual ~ControlsView();
26 virtual void MessageReceived(BMessage* msg);
28 BVolume* FindDeviceFor(dev_t device,
29 bool invoke = false);
31 void EnableRescan();
32 void EnableCancel();
33 void ShowInfo(const FileInfo* info);
35 private:
36 class VolumeTabView;
38 VolumeTabView* fVolumeTabView;
42 #endif // CONTROLS_VIEW_H