#include <Volume.h>
BVolume class lets you ask questions about specific "volumes," where a volume is any independent file system.
Public Member Functions | |
| BVolume () | |
| BVolume (dev_t dev) | |
| BVolume (const BVolume &vol) | |
| virtual | ~BVolume () |
| status_t | InitCheck () const |
| status_t | SetTo (dev_t dev) |
| void | Unset (void) |
| dev_t | Device () const |
| status_t | GetRootDirectory (BDirectory *dir) const |
| off_t | Capacity () const |
| off_t | FreeBytes () const |
| status_t | GetName (char *name) const |
| status_t | SetName (const char *name) |
| status_t | GetIcon (BBitmap *icon, icon_size which) const |
| bool | IsRemovable () const |
| bool | IsReadOnly () const |
| bool | IsPersistent () const |
| bool | IsShared () const |
| bool | KnowsMime () const |
| bool | KnowsAttr () const |
| bool | KnowsQuery () const |
| bool | operator== (const BVolume &vol) const |
| bool | operator!= (const BVolume &vol) const |
| BVolume & | operator= (const BVolume &vol) |
Friends | |
| class | BVolumeRoster |
|
|
Creates a new BVolume object and initializes it according to the argument. The status of the initialization is recorded by the InitCheck() function.
The default constructor does nothing and sets InitCheck() to |
|
|
Creates a new BVolume object and initializes it according to the argument. The status of the initialization is recorded by the InitCheck() function. The dev constructor sets the BVolume to point to the volume represented by the argument. See the SetTo() function for status codes.
|
|
|
Creates a new BVolume object and initializes it according to the argument. The status of the initialization is recorded by the InitCheck() function. The copy constructor sets the object to point to the same device as does the argument.
|
|
|
Destroys the BVolume object. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Copies the name of the volume into buffer.
|
|
|
Initializes dir (which must be allocated) to refer to the volume's "root directory." The root directory stands at the "root" of the volume's file hierarchy.
|
|
|
|
|
|
This function answer media-related questions about the volume:
|
|
|
This function answer media-related questions about the volume:
|
|
|
This function answer media-related questions about the volume:
|
|
|
This function answer media-related questions about the volume:
|
|
|
This function answer questions about the file system on the volume:
|
|
|
This function answer questions about the file system on the volume:
|
|
|
This function answer questions about the file system on the volume:
|
|
|
Comparison Operator The BVolume object are said to be not equal if they not refer to the same volume, or if they're both uninitialized.
|
|
|
Assignment operator In the expression BVolume a = b; BVolume a is initialized to refer to the same volume as b. To gauge the success of the assignment, you should call InitCheck() immediately afterwards. Assigning a BVolume to itself is safe.
Assigning from an uninitialized BVolume is "successful": The assigned-to BVolume will also be uninitialized ( |
|
|
Comparison Operator The BVolume object are said to be equal if they refer to the same volume, or if they're both uninitialized.
|
|
|
|
|
|
Initializes the BVolume object to represent the volume (device) identified by the argument.
|
|
|
Uninitializes the BVolume. |
|
|
|