* 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:
parent
ad5eea0a83
commit
c7cf50a4e5
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user