* 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:
@@ -45,6 +45,7 @@ public:
|
|||||||
bool SupportsCreatingChild() const;
|
bool SupportsCreatingChild() const;
|
||||||
bool SupportsDeletingChild() const;
|
bool SupportsDeletingChild() const;
|
||||||
bool SupportsInitializing() const;
|
bool SupportsInitializing() const;
|
||||||
|
bool SupportsWriting() const;
|
||||||
|
|
||||||
status_t GetTypeForContentType(const char* contentType,
|
status_t GetTypeForContentType(const char* contentType,
|
||||||
BString* type) const;
|
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
|
// GetTypeForContentType
|
||||||
status_t
|
status_t
|
||||||
BDiskSystem::GetTypeForContentType(const char* contentType, BString* type) const
|
BDiskSystem::GetTypeForContentType(const char* contentType, BString* type) const
|
||||||
|
|||||||
Reference in New Issue
Block a user