#include <sbBaseDeviceVolume.h>
Public Member Functions | |
| virtual | ~sbBaseDeviceVolume () |
| nsresult | GetGUID (nsAString &aGUID) |
| nsresult | SetGUID (const nsAString &aGUID) |
| nsresult | GetIsMounted (PRBool *aIsMounted) |
| nsresult | SetIsMounted (PRBool aIsMounted) |
| nsresult | GetRemovable (PRInt32 *aRemovable) |
| nsresult | SetRemovable (PRInt32 aRemovable) |
| nsresult | GetDeviceLibrary (sbIDeviceLibrary **aDeviceLibrary) |
| nsresult | SetDeviceLibrary (sbIDeviceLibrary *aDeviceLibrary) |
| nsresult | GetStatistics (sbDeviceStatistics **aStatistics) |
Static Public Member Functions | |
| static NS_DECL_ISUPPORTS nsresult | New (sbBaseDeviceVolume **aVolume, sbBaseDevice *aDevice) |
Protected Member Functions | |
| virtual nsresult | Initialize (sbBaseDevice *aDevice) |
| sbBaseDeviceVolume () | |
Protected Attributes | |
| PRLock * | mVolumeLock |
This structure provides a base representation of a storage volume on a device.
Definition at line 72 of file sbBaseDeviceVolume.h.
|
virtual |
Destroy a base device volume instance.
Definition at line 83 of file sbBaseDeviceVolume.cpp.
|
protected |
Construct a base device volume instance.
Definition at line 244 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::GetDeviceLibrary | ( | sbIDeviceLibrary ** | aDeviceLibrary | ) |
Get/set the volume device library.
Definition at line 150 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::GetGUID | ( | nsAString & | aGUID | ) |
Get/set the volume GUID.
Definition at line 97 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::GetIsMounted | ( | PRBool * | aIsMounted | ) |
Get/set the volume mounted state.
Definition at line 114 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::GetRemovable | ( | PRInt32 * | aRemovable | ) |
Get/set whether the volume is removable. If this value is 1, the volume is removable. If it's 0, the volume is not removable. If it's -1, it is unknown wether the volume is removable.
Definition at line 132 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::GetStatistics | ( | sbDeviceStatistics ** | aStatistics | ) |
Get the volume statistics.
Definition at line 208 of file sbBaseDeviceVolume.cpp.
|
protectedvirtual |
Initialize the device volume for the device specified by aDevice.
| aDevice | Device owning the volume. |
Definition at line 225 of file sbBaseDeviceVolume.cpp.
|
static |
Create and return in aVolume a new base device volume for the device specified by aDevice.
| aVolume | Returned, created volume. |
| aDevice | Device owning the volume. |
Definition at line 61 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::SetDeviceLibrary | ( | sbIDeviceLibrary * | aDeviceLibrary | ) |
Definition at line 159 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::SetGUID | ( | const nsAString & | aGUID | ) |
Definition at line 105 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::SetIsMounted | ( | PRBool | aIsMounted | ) |
Definition at line 123 of file sbBaseDeviceVolume.cpp.
| nsresult sbBaseDeviceVolume::SetRemovable | ( | PRInt32 | aRemovable | ) |
Definition at line 141 of file sbBaseDeviceVolume.cpp.
|
protected |
Definition at line 164 of file sbBaseDeviceVolume.h.