libzypp  17.10.1
zypp::target::hal::HalDrive Class Reference

Hardware abstaction layer storage drive object. More...

#include <HalContext.h>

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. More...
 

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 177 of file HalContext.h.

Member Typedef Documentation

◆ bool_type

Definition at line 181 of file HalContext.h.

Constructor & Destructor Documentation

◆ HalDrive() [1/3]

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

Definition at line 710 of file HalContext.cc.

◆ HalDrive() [2/3]

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

Definition at line 725 of file HalContext.cc.

◆ ~HalDrive()

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

Definition at line 734 of file HalContext.cc.

◆ HalDrive() [3/3]

zypp::target::hal::HalDrive::HalDrive ( HalDrive_Impl impl)
private

Definition at line 716 of file HalContext.cc.

Member Function Documentation

◆ operator=()

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

Definition at line 743 of file HalContext.cc.

◆ operator bool_type()

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

Definition at line 755 of file HalContext.cc.

◆ getUDI()

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

Definition at line 764 of file HalContext.cc.

◆ getTypeName()

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

Definition at line 775 of file HalContext.cc.

◆ getDeviceFile()

std::string zypp::target::hal::HalDrive::getDeviceFile ( ) const
Returns
The drive's device file name.

Definition at line 786 of file HalContext.cc.

◆ getDeviceMajor()

unsigned int zypp::target::hal::HalDrive::getDeviceMajor ( ) const
Returns
The drive's device file major number.

Definition at line 796 of file HalContext.cc.

◆ getDeviceMinor()

unsigned int zypp::target::hal::HalDrive::getDeviceMinor ( ) const
Returns
The drive's device minor number.

Definition at line 806 of file HalContext.cc.

◆ usesRemovableMedia()

bool zypp::target::hal::HalDrive::usesRemovableMedia ( ) const
Returns
True, if drive uses removable media.

Definition at line 816 of file HalContext.cc.

◆ getCdromCapabilityNames()

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

Definition at line 826 of file HalContext.cc.

◆ findAllVolumes()

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 916 of file HalContext.cc.

Friends And Related Function Documentation

◆ HalContext

friend class HalContext
friend

Definition at line 244 of file HalContext.h.

Member Data Documentation

◆ d_impl

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

Definition at line 248 of file HalContext.h.


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