2003-02-01 01:05:09 +03:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
|
|
// by the OpenBeOS license.
|
|
|
|
//---------------------------------------------------------------------
|
2003-02-01 00:17:20 +03:00
|
|
|
|
|
|
|
#ifndef _DISK_DEVICE_VISITOR_H
|
|
|
|
#define _DISK_DEVICE_VISITOR_H
|
|
|
|
|
|
|
|
class BDiskDevice;
|
|
|
|
class BPartition;
|
|
|
|
class BSession;
|
|
|
|
|
|
|
|
// 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-02-08 03:39:38 +03:00
|
|
|
virtual bool Visit(BSession *session);
|
|
|
|
virtual bool Visit(BPartition *partition);
|
2003-02-01 00:17:20 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif _DISK_DEVICE_VISITOR_H
|