sbBaseDeviceVolume Class Reference

#include <sbBaseDeviceVolume.h>

Inheritance diagram for sbBaseDeviceVolume:
[legend]
Collaboration diagram for sbBaseDeviceVolume:
[legend]

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
 

Detailed Description

This structure provides a base representation of a storage volume on a device.

Definition at line 72 of file sbBaseDeviceVolume.h.

Constructor & Destructor Documentation

sbBaseDeviceVolume::~sbBaseDeviceVolume ( )
virtual

Destroy a base device volume instance.

Definition at line 83 of file sbBaseDeviceVolume.cpp.

sbBaseDeviceVolume::sbBaseDeviceVolume ( )
protected

Construct a base device volume instance.

Definition at line 244 of file sbBaseDeviceVolume.cpp.

Member Function Documentation

nsresult sbBaseDeviceVolume::GetDeviceLibrary ( sbIDeviceLibrary **  aDeviceLibrary)

Get/set the volume device library.

Definition at line 150 of file sbBaseDeviceVolume.cpp.

Here is the caller graph for this function:

nsresult sbBaseDeviceVolume::GetGUID ( nsAString &  aGUID)

Get/set the volume GUID.

Definition at line 97 of file sbBaseDeviceVolume.cpp.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

nsresult sbBaseDeviceVolume::GetStatistics ( sbDeviceStatistics **  aStatistics)

Get the volume statistics.

Definition at line 208 of file sbBaseDeviceVolume.cpp.

nsresult sbBaseDeviceVolume::Initialize ( sbBaseDevice aDevice)
protectedvirtual

Initialize the device volume for the device specified by aDevice.

Parameters
aDeviceDevice owning the volume.

Definition at line 225 of file sbBaseDeviceVolume.cpp.

Here is the call graph for this function:

nsresult sbBaseDeviceVolume::New ( sbBaseDeviceVolume **  aVolume,
sbBaseDevice aDevice 
)
static

Create and return in aVolume a new base device volume for the device specified by aDevice.

Parameters
aVolumeReturned, created volume.
aDeviceDevice 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.

Member Data Documentation

PRLock* sbBaseDeviceVolume::mVolumeLock
protected

Definition at line 164 of file sbBaseDeviceVolume.h.


The documentation for this class was generated from the following files: