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