zypp::target::hal::HalDrive Class Reference

Hardware abstaction layer storage drive object. More...

#include <HalContext.h>

List of all members.

Public Types

typedef zypp::RW_pointer<
HalDrive_Impl >::unspecified_bool_type 
bool_type

Public Member Functions

 HalDrive ()
 HalDrive (const HalDrive &drive)
 ~HalDrive ()
HalDriveoperator= (const HalDrive &drive)
 operator bool_type () const
std::string getUDI () const
std::string getTypeName () const
std::string getDeviceFile () const
unsigned int getDeviceMajor () const
unsigned int getDeviceMinor () const
bool usesRemovableMedia () const
std::vector< std::string > getCdromCapabilityNames () const
std::vector< std::string > findAllVolumes () const
 Retrieve UDI's of all volumes of this drive.

Private Member Functions

 HalDrive (HalDrive_Impl *impl)

Private Attributes

zypp::RW_pointer< HalDrive_Impld_impl

Friends

class HalContext


Detailed Description

Hardware abstaction layer storage drive object.

Todo:
: wrap more functions.

Definition at line 179 of file HalContext.h.


Member Typedef Documentation

typedef zypp::RW_pointer<HalDrive_Impl>::unspecified_bool_type zypp::target::hal::HalDrive::bool_type
 

Definition at line 183 of file HalContext.h.


Constructor & Destructor Documentation

zypp::target::hal::HalDrive::HalDrive  ) 
 

Definition at line 667 of file HalContext.cc.

zypp::target::hal::HalDrive::HalDrive const HalDrive drive  ) 
 

Definition at line 682 of file HalContext.cc.

References d_impl, and zypp::target::hal::g_Mutex.

zypp::target::hal::HalDrive::~HalDrive  ) 
 

Definition at line 691 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::RW_pointer< _D, _Traits >::reset().

zypp::target::hal::HalDrive::HalDrive HalDrive_Impl impl  )  [private]
 

Definition at line 673 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::RW_pointer< _D, _Traits >::reset().


Member Function Documentation

HalDrive & zypp::target::hal::HalDrive::operator= const HalDrive drive  ) 
 

Definition at line 700 of file HalContext.cc.

References d_impl, and zypp::target::hal::g_Mutex.

zypp::target::hal::HalDrive::operator HalDrive::bool_type  )  const
 

Definition at line 712 of file HalContext.cc.

References d_impl, and zypp::target::hal::g_Mutex.

std::string zypp::target::hal::HalDrive::getUDI  )  const
 

Definition at line 721 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::target::hal::VERIFY_DRIVE().

Referenced by getCdromCapabilityNames().

std::string zypp::target::hal::HalDrive::getTypeName  )  const
 

Definition at line 732 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::target::hal::VERIFY_DRIVE().

Referenced by getCdromCapabilityNames().

std::string zypp::target::hal::HalDrive::getDeviceFile  )  const
 

Returns:
The drive's device file name.

Definition at line 743 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::target::hal::VERIFY_DRIVE().

unsigned int zypp::target::hal::HalDrive::getDeviceMajor  )  const
 

Returns:
The drive's device file major number.

Definition at line 753 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::target::hal::VERIFY_DRIVE().

unsigned int zypp::target::hal::HalDrive::getDeviceMinor  )  const
 

Returns:
The drive's device minor number.

Definition at line 763 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::target::hal::VERIFY_DRIVE().

bool zypp::target::hal::HalDrive::usesRemovableMedia  )  const
 

Returns:
True, if drive uses removable media.

Definition at line 773 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::target::hal::VERIFY_DRIVE().

std::vector< std::string > zypp::target::hal::HalDrive::getCdromCapabilityNames  )  const
 

Definition at line 783 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, getTypeName(), getUDI(), zypp::target::hal::VERIFY_DRIVE(), and ZYPP_THROW.

std::vector< std::string > zypp::target::hal::HalDrive::findAllVolumes  )  const
 

Retrieve UDI's of all volumes of this drive.

Returns:
Vector with volume UDI's.

Definition at line 873 of file HalContext.cc.

References d_impl, zypp::target::hal::g_Mutex, and zypp::target::hal::VERIFY_DRIVE().


Friends And Related Function Documentation

friend class HalContext [friend]
 

Definition at line 246 of file HalContext.h.


Member Data Documentation

zypp::RW_pointer<HalDrive_Impl> zypp::target::hal::HalDrive::d_impl [private]
 

Definition at line 250 of file HalContext.h.

Referenced by findAllVolumes(), getCdromCapabilityNames(), getDeviceFile(), getDeviceMajor(), getDeviceMinor(), getTypeName(), getUDI(), HalDrive(), operator bool_type(), operator=(), usesRemovableMedia(), and ~HalDrive().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:35 2006 for zypp by  doxygen 1.4.6