#include <MediaCD.h>
Inheritance diagram for zypp::media::MediaCD:
Public Member Functions | |
MediaCD (const Url &url_r, const Pathname &attach_point_hint_r) | |
virtual | ~MediaCD () |
virtual bool | isAttached () const |
True if media is attached. | |
Protected Member Functions | |
virtual void | forceEject () |
Call concrete handler to physically eject the media (i.e. | |
virtual bool | isAutoMountedMedia (const AttachedMedia &media) |
Protected Attributes | |
MEDIA_HANDLER_API | |
Private Types | |
typedef std::list< MediaSource > | DeviceList |
Private Member Functions | |
DeviceList | detectDevices (bool supportingDVD) |
Static Private Member Functions | |
static bool | openTray (const std::string &device_r) |
static bool | closeTray (const std::string &device_r) |
Private Attributes | |
DeviceList | _devices |
list of devices to try to mount | |
int | _lastdev |
number of last successful mounted device in list |
Definition at line 28 of file MediaCD.h.
|
|
|
Definition at line 108 of file MediaCD.cc. References zypp::media::MediaHandler::_url, zypp::Url::asString(), ERR, zypp::Url::getScheme(), MIL, and ZYPP_THROW. |
|
Definition at line 57 of file MediaCD.h. References zypp::media::MediaHandler::release(). |
|
|
|
|
|
Definition at line 279 of file MediaCD.cc. References DBG, and ZYPP_CAUGHT. Referenced by forceEject(). |
|
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 zypp::media::MediaHandler. Definition at line 665 of file MediaCD.cc. References _devices, zypp::media::MediaHandler::_url, DBG, detectDevices(), zypp::Url::getScheme(), isAttached(), zypp::filesystem::PathInfo::isBlk(), zypp::filesystem::PathInfo::major(), and zypp::filesystem::PathInfo::minor(). |
|
Reimplemented from zypp::media::MediaHandler. Definition at line 757 of file MediaCD.cc. References zypp::media::AttachedMedia::attachPoint, zypp::media::AttachedMedia::mediaSource, and ZYPP_CAUGHT. |
|
True if media is attached.
Reimplemented from zypp::media::MediaHandler. Definition at line 799 of file MediaCD.cc. References zypp::media::MediaHandler::checkAttached(). Referenced by forceEject(). |
|
list of devices to try to mount
Definition at line 34 of file MediaCD.h. Referenced by forceEject(). |
|
number of last successful mounted device in list
|
|
|