1/* 2 * Copyright 2007-2008 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT license. 4 */ 5#ifndef DISK_VIEW_H 6#define DISK_VIEW_H 7 8 9#include <DiskDevice.h> 10#include <View.h> 11 12#include "Support.h" 13 14 15class DiskView : public BView { 16 typedef BView Inherited; 17public: 18 DiskView(const BRect& frame, 19 uint32 resizeMode, 20 SpaceIDMap& spaceIDMap); 21 virtual ~DiskView(); 22 23 // BView interface 24 virtual void Draw(BRect updateRect); 25 26 void SetDiskCount(int32 count); 27 void SetDisk(BDiskDevice* disk, 28 partition_id selectedPartition); 29 30 void ForceUpdate(); 31private: 32 int32 fDiskCount; 33 BDiskDevice* fDisk; 34 SpaceIDMap& fSpaceIDMap; 35 36 class PartitionLayout; 37 PartitionLayout* fPartitionLayout; 38}; 39 40 41#endif // DISK_VIEW_H 42