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 16class BMessage; 17class BVolume; 18 19struct FileInfo; 20 21class ControlsView: public BView { 22public: 23 ControlsView(); 24 virtual ~ControlsView(); 25 26 virtual void MessageReceived(BMessage* msg); 27 28 BVolume* FindDeviceFor(dev_t device, 29 bool invoke = false); 30 31 void EnableRescan(); 32 void EnableCancel(); 33 void ShowInfo(const FileInfo* info); 34 35private: 36 class VolumeTabView; 37 38 VolumeTabView* fVolumeTabView; 39}; 40 41 42#endif // CONTROLS_VIEW_H 43