1 /* 2 * Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>. All rights reserved. 3 * Distributed under the terms of the MIT/X11 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 #ifndef CONTROLS_VIEW_H 10 #define CONTROLS_VIEW_H 11 12 #include <Button.h> 13 #include <View.h> 14 15 16 class BVolume; 17 18 class ControlsView: public BView { 19 public: 20 ControlsView(BRect r); 21 virtual ~ControlsView(); 22 23 void SetRescanEnabled(bool enable) 24 { fRescanButton->SetEnabled(enable); } 25 26 BVolume* FindDeviceFor(dev_t device, 27 bool invoke = false); 28 29 private: 30 class VolumePopup; 31 32 VolumePopup* fVolumePopup; 33 BButton* fRescanButton; 34 }; 35 36 37 #endif // CONTROLS_VIEW_H 38 39