/* * Copyright (c) 2008 Stephan Aßmus . All rights reserved. * Distributed under the terms of the MIT/X11 license. * * Copyright (c) 1999 Mike Steed. You are free to use and distribute this software * as long as it is accompanied by it's documentation and this copyright notice. * The software comes with no warranty, etc. */ #ifndef CONTROLS_VIEW_H #define CONTROLS_VIEW_H #include #include class BVolume; class ControlsView: public BView { public: ControlsView(BRect r); virtual ~ControlsView(); void SetRescanEnabled(bool enable) { fRescanButton->SetEnabled(enable); } BVolume* FindDeviceFor(dev_t device, bool invoke = false); private: class VolumePopup; VolumePopup* fVolumePopup; BButton* fRescanButton; }; #endif // CONTROLS_VIEW_H