* Added a handy BDiskSystem::SupportsWriting().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28066 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-10-13 23:47:30 +00:00
parent ad5eea0a83
commit c7cf50a4e5
2 changed files with 12 additions and 0 deletions

View File

@ -45,6 +45,7 @@ public:
bool SupportsCreatingChild() const;
bool SupportsDeletingChild() const;
bool SupportsInitializing() const;
bool SupportsWriting() const;
status_t GetTypeForContentType(const char* contentType,
BString* type) const;

View File

@ -290,6 +290,17 @@ BDiskSystem::SupportsInitializing() const
}
bool
BDiskSystem::SupportsWriting() const
{
if (InitCheck() != B_OK
|| !IsFileSystem())
return false;
return (fFlags & B_DISK_SYSTEM_SUPPORTS_WRITING) != 0;
}
// GetTypeForContentType
status_t
BDiskSystem::GetTypeForContentType(const char* contentType, BString* type) const