#include <MediaISO.h>
Inheritance diagram for zypp::media::MediaISO:

Public Member Functions | |
| MediaISO (const Url &url_r, const Pathname &attach_point_hint_r) | |
| virtual | ~MediaISO () |
| virtual bool | isAttached () const |
| True if media is attached. | |
Protected Member Functions | |
| virtual void | attachTo (bool next=false) |
| Call concrete handler to attach the media. | |
| virtual void | releaseFrom (bool eject) |
| Call concrete handler to release the media. | |
| virtual void | getFile (const Pathname &filename) const |
| Call concrete handler to provide file below attach point. | |
| virtual void | getDir (const Pathname &dirname, bool recurse_r) const |
| Call concrete handler to provide directory content (not recursive!) below attach point. | |
| virtual void | getDirInfo (std::list< std::string > &retlist, const Pathname &dirname, bool dots=true) const |
| Call concrete handler to provide a content list of directory on media via retlist. | |
| virtual void | getDirInfo (filesystem::DirContent &retlist, const Pathname &dirname, bool dots=true) const |
| Basically the same as getDirInfo above. | |
| virtual bool | getDoesFileExist (const Pathname &filename) const |
| check if a file exists | |
Private Attributes | |
| Pathname | _isofile |
| MediaAccessId | _isosource |
| std::string | _filesystem |
Definition at line 35 of file MediaISO.h.
|
||||||||||||
|
Definition at line 41 of file MediaISO.cc. References _isofile, zypp::media::MediaHandler::_url, zypp::filesystem::Pathname::empty(), ERR, zypp::Url::getQueryParam(), MIL, and ZYPP_THROW. |
|
|
Definition at line 115 of file MediaISO.cc. References zypp::media::MediaHandler::_parentId, zypp::media::MediaManager::close(), DBG, zypp::media::MediaManager::isOpen(), and zypp::media::MediaHandler::release(). |
|
|
Call concrete handler to attach the media. Asserted that not already attached, and attachPoint is a directory.
Implements zypp::media::MediaHandler. Definition at line 142 of file MediaISO.cc. References _isofile, zypp::media::MediaHandler::_parentId, zypp::media::MediaHandler::_url, zypp::filesystem::Pathname::asString(), zypp::media::MediaManager::attach(), zypp::media::MediaHandler::attachPoint(), zypp::filesystem::PathInfo::isFile(), zypp::media::MediaManager::localPath(), zypp::media::MediaManager::provideFile(), zypp::media::MediaManager::release(), ZYPP_CAUGHT, and ZYPP_THROW. |
|
|
Call concrete handler to release the media. If eject is true, and the media is used in one handler instance only, physically eject the media (i.e. CD-ROM). Asserted that media is attached.
Implements zypp::media::MediaHandler. Definition at line 244 of file MediaISO.cc. References zypp::media::MediaHandler::_parentId, zypp::bit::asString(), zypp::media::MediaHandler::attachPoint(), zypp::media::MediaManager::release(), and zypp::media::Mount::umount(). |
|
|
Call concrete handler to provide file below attach point. Default implementation provided, that returns whether a file is located at 'localRoot + filename'. Asserted that media is attached.
Implements zypp::media::MediaHandler. Definition at line 260 of file MediaISO.cc. References zypp::media::MediaHandler::getFile(). |
|
||||||||||||
|
Call concrete handler to provide directory content (not recursive!) below attach point. Return E_not_supported_by_media if media does not support retrieval of directory content. Default implementation provided, that returns whether a directory is located at 'localRoot + dirname'. Asserted that media is attached.
Implements zypp::media::MediaHandler. Definition at line 266 of file MediaISO.cc. References zypp::media::MediaHandler::getDir(). |
|
||||||||||||||||
|
Call concrete handler to provide a content list of directory on media via retlist. If dots is false entries starting with '.' are not reported. Return E_not_supported_by_media if media does not support retrieval of directory content. Default implementation provided, that returns the content of a directory at 'localRoot + dirnname' retrieved via 'readdir'. Asserted that media is attached and retlist is empty.
Implements zypp::media::MediaHandler. Definition at line 273 of file MediaISO.cc. References zypp::media::MediaHandler::getDirInfo(). |
|
||||||||||||||||
|
Basically the same as getDirInfo above. The content list is returned as filesystem::DirContent, which includes name and filetype of each directory entry. Retrieving the filetype usg. requires an additional stat call for each entry, thus it's more expensive than a simple readdir. Asserted that media is attached and retlist is empty.
Implements zypp::media::MediaHandler. Definition at line 281 of file MediaISO.cc. References zypp::media::MediaHandler::getDirInfo(). |
|
|
check if a file exists Asserted that url is a file and not a dir.
Implements zypp::media::MediaHandler. Definition at line 288 of file MediaISO.cc. References zypp::media::MediaHandler::getDoesFileExist(). |
|
|
True if media is attached.
Reimplemented from zypp::media::MediaHandler. Definition at line 136 of file MediaISO.cc. References zypp::media::MediaHandler::checkAttached(). |
|
|
Definition at line 38 of file MediaISO.h. Referenced by attachTo(), and MediaISO(). |
|
|
Definition at line 39 of file MediaISO.h. |
|
|
Definition at line 40 of file MediaISO.h. |
1.4.6