Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

MediaCD Class Reference

Implementation class for CD/DVD MediaHandler. More...

#include <MediaCD.h>

Inheritance diagram for MediaCD:

MediaHandler List of all members.

Public Member Functions

 MediaCD (const Url &url_r, const Pathname &attach_point_hint_r)
virtual ~MediaCD ()

Protected Member Functions

virtual void forceEject ()

Protected Attributes

 MEDIA_HANDLER_API

Private Types

typedef std::list< std::string > DeviceList

Static Private Member Functions

bool openTray (const std::string &device_r)
bool closeTray (const std::string &device_r)

Private Attributes

unsigned long _mountflags
DeviceList _devices
std::string _mounteddevice
int _lastdev

Detailed Description

Implementation class for CD/DVD MediaHandler.

See also:
MediaHandler


Member Typedef Documentation

typedef std::list<std::string> MediaCD::DeviceList [private]
 


Constructor & Destructor Documentation

MediaCD::MediaCD const Url url_r,
const Pathname attach_point_hint_r
 

virtual MediaCD::~MediaCD  )  [inline, virtual]
 


Member Function Documentation

bool MediaCD::closeTray const std::string &  device_r  )  [static, private]
 

void MediaCD::forceEject  )  [protected, virtual]
 

Call concrete handler to physically eject the media (i.e. CD-ROM) in case the media is not attached..

Asserted that media is not attached.

Reimplemented from MediaHandler.

bool MediaCD::openTray const std::string &  device_r  )  [static, private]
 


Member Data Documentation

DeviceList MediaCD::_devices [private]
 

list of devices to try to mount

int MediaCD::_lastdev [private]
 

number of last successful mounted device in list

std::string MediaCD::_mounteddevice [private]
 

which device has been mounted

unsigned long MediaCD::_mountflags [private]
 

MediaCD::MEDIA_HANDLER_API [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:32 2007 for yast2-packagemanager by doxygen 1.3.6