vfs: check userland buffers before reading them.
[haiku.git] / src / apps / drivesetup / DiskView.h
blob38a58de1de2d47349746ed06ad65b78e7c03d86f
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
9 #include <DiskDevice.h>
10 #include <View.h>
12 #include "Support.h"
15 class DiskView : public BView {
16 typedef BView Inherited;
17 public:
18 DiskView(const BRect& frame,
19 uint32 resizeMode,
20 SpaceIDMap& spaceIDMap);
21 virtual ~DiskView();
23 // BView interface
24 virtual void Draw(BRect updateRect);
26 void SetDiskCount(int32 count);
27 void SetDisk(BDiskDevice* disk,
28 partition_id selectedPartition);
30 void ForceUpdate();
31 private:
32 int32 fDiskCount;
33 BDiskDevice* fDisk;
34 SpaceIDMap& fSpaceIDMap;
36 class PartitionLayout;
37 PartitionLayout* fPartitionLayout;
41 #endif // DISK_VIEW_H