Added Supports[Content]Name() methods.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22044 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-08-22 21:22:29 +00:00
parent 76a8ec23db
commit 2652981136
2 changed files with 18 additions and 0 deletions

View File

@ -29,6 +29,8 @@ public:
bool SupportsResizingChild() const;
bool SupportsMoving(bool *whileMounted) const;
bool SupportsMovingChild() const;
bool SupportsName() const;
bool SupportsContentName() const;
bool SupportsSettingName() const;
bool SupportsSettingContentName(bool *whileMounted) const;
bool SupportsSettingType() const;

View File

@ -140,6 +140,22 @@ BDiskSystem::SupportsMovingChild() const
&& (fFlags & B_DISK_SYSTEM_SUPPORTS_MOVING_CHILD));
}
// SupportsName
bool
BDiskSystem::SupportsName() const
{
return (InitCheck() == B_OK && IsPartitioningSystem()
&& (fFlags & B_DISK_SYSTEM_SUPPORTS_NAME));
}
// SupportsContentName
bool
BDiskSystem::SupportsContentName() const
{
return (InitCheck() == B_OK
&& (fFlags & B_DISK_SYSTEM_SUPPORTS_CONTENT_NAME));
}
// SupportsSettingName
bool
BDiskSystem::SupportsSettingName() const