a162af3b0e
and KShadowPartition from it. KPhysicalPartition represents a partition that exists on-disk, while KShadowPartition is a partition edited by the API user, but not yet written to disk. Related changes in other classes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3851 a95241bf-73f2-0310-859d-f6bbb57e9c96
42 lines
916 B
C++
42 lines
916 B
C++
// KPartition.h
|
|
|
|
#ifndef _K_DISK_DEVICE_SHADOW_PARTITION_H
|
|
#define _K_DISK_DEVICE_SHADOW_PARTITION_H
|
|
|
|
#include "KPartition.h"
|
|
|
|
namespace BPrivate {
|
|
namespace DiskDevice {
|
|
|
|
class KPhysicalPartition;
|
|
|
|
class KShadowPartition : public KPartition {
|
|
public:
|
|
KShadowPartition(KPhysicalPartition *physicalPartition);
|
|
virtual ~KShadowPartition();
|
|
|
|
// Hierarchy
|
|
|
|
virtual status_t CreateChild(partition_id id, int32 index,
|
|
KPartition **child = NULL);
|
|
|
|
// Shadow Partition
|
|
|
|
virtual KShadowPartition *ShadowPartition();
|
|
virtual bool IsShadowPartition() const;
|
|
void SetPhysicalPartition(KPhysicalPartition *partition);
|
|
virtual KPhysicalPartition *PhysicalPartition();
|
|
|
|
virtual void Dump(bool deep, int32 level);
|
|
|
|
protected:
|
|
KPhysicalPartition *fPhysicalPartition;
|
|
};
|
|
|
|
} // namespace DiskDevice
|
|
} // namespace BPrivate
|
|
|
|
using BPrivate::DiskDevice::KShadowPartition;
|
|
|
|
#endif // _K_DISK_DEVICE_SHADOW_PARTITION_H
|