2003-01-31 22:05:09 +00:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
|
|
// by the OpenBeOS license.
|
|
|
|
//---------------------------------------------------------------------
|
2003-01-31 21:17:20 +00:00
|
|
|
|
|
|
|
#ifndef _DISK_DEVICE_VISITOR_H
|
|
|
|
#define _DISK_DEVICE_VISITOR_H
|
|
|
|
|
2003-07-08 18:26:15 +00:00
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
2003-01-31 21:17:20 +00:00
|
|
|
class BDiskDevice;
|
|
|
|
class BPartition;
|
|
|
|
|
|
|
|
// BDiskDeviceVisitor
|
|
|
|
class BDiskDeviceVisitor {
|
2003-02-08 23:34:47 +00:00
|
|
|
public:
|
2003-01-31 21:17:20 +00:00
|
|
|
BDiskDeviceVisitor();
|
|
|
|
virtual ~BDiskDeviceVisitor();
|
|
|
|
|
|
|
|
// return true to abort iteration
|
|
|
|
virtual bool Visit(BDiskDevice *device);
|
2003-07-08 18:26:15 +00:00
|
|
|
virtual bool Visit(BPartition *partition, int32 level);
|
2003-01-31 21:17:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif _DISK_DEVICE_VISITOR_H
|