* Got rid of SetContentType(). It is set automatically now, to the

PrettyName() of the responsible disk system.
* Added change counter support and changes tracking.
* Added UninitializeContents().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4042 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-07-22 00:03:35 +00:00
parent d61adbe244
commit 02885b7d6e
2 changed files with 48 additions and 11 deletions
@@ -84,8 +84,8 @@ public:
status_t SetType(const char *type);
const char *Type() const;
status_t SetContentType(const char *type);
const char *ContentType() const;
// ContentType() == DiskSystem()->NamePretty()
// access to C style partition data
partition_data *PartitionData();
@@ -153,6 +153,9 @@ public:
void SetContentCookie(void *cookie);
void *ContentCookie() const;
void Changed(uint32 flags);
void UninitializeContents(bool logChanges = true);
virtual void WriteUserData(UserDataWriter &writer,
user_partition_data *data);
@@ -170,6 +173,8 @@ protected:
KDiskDevice *fDevice;
KPartition *fParent;
KDiskSystem *fDiskSystem;
uint32 fChangeFlags;
int32 fChangeCounter;
int32 fReferenceCount;
bool fObsolete;
static int32 fNextID;