* Added BDiskSystem::ShortName() and everything needed to get it there.
* Added BDiskDeviceRoster::GetDiskSystem() method, that can get a disk system by short/pretty/module name - since they should all be unique, I put them in a single namespace, please complain if you don't like that :-) * Cleaned up DiskSystem.h and DiskDeviceRoster.h according to the updated header guidelines. * Renamed ntfs pretty name from "ntfs File System" to "Windows NT File System". git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25414 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2007, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2003-2008, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -8,6 +8,7 @@
|
||||
#ifndef _K_DISK_DEVICE_SYSTEM_H
|
||||
#define _K_DISK_DEVICE_SYSTEM_H
|
||||
|
||||
|
||||
#include "disk_device_manager.h"
|
||||
|
||||
|
||||
@@ -33,7 +34,8 @@ public:
|
||||
disk_system_id ID() const;
|
||||
|
||||
const char* Name() const;
|
||||
const char* PrettyName();
|
||||
const char* ShortName() const;
|
||||
const char* PrettyName() const;
|
||||
uint32 Flags() const;
|
||||
|
||||
bool IsFileSystem() const;
|
||||
@@ -97,6 +99,7 @@ protected:
|
||||
virtual status_t LoadModule();
|
||||
virtual void UnloadModule();
|
||||
|
||||
status_t SetShortName(const char* name);
|
||||
status_t SetPrettyName(const char* name);
|
||||
void SetFlags(uint32 flags);
|
||||
|
||||
@@ -105,6 +108,7 @@ protected:
|
||||
private:
|
||||
disk_system_id fID;
|
||||
char* fName;
|
||||
char* fShortName;
|
||||
char* fPrettyName;
|
||||
uint32 fFlags;
|
||||
int32 fLoadCounter;
|
||||
|
||||
Reference in New Issue
Block a user