2005-10-29 20:27:43 +04:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
|
|
// by the OpenBeOS license.
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef _DISK_DEVICE_VISITOR_H
|
|
|
|
#define _DISK_DEVICE_VISITOR_H
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
class BDiskDevice;
|
|
|
|
class BPartition;
|
|
|
|
|
|
|
|
// BDiskDeviceVisitor
|
|
|
|
class BDiskDeviceVisitor {
|
|
|
|
public:
|
|
|
|
BDiskDeviceVisitor();
|
|
|
|
virtual ~BDiskDeviceVisitor();
|
|
|
|
|
|
|
|
// return true to abort iteration
|
|
|
|
virtual bool Visit(BDiskDevice *device);
|
|
|
|
virtual bool Visit(BPartition *partition, int32 level);
|
|
|
|
};
|
|
|
|
|
2007-06-21 01:30:00 +04:00
|
|
|
#endif // _DISK_DEVICE_VISITOR_H
|