#include <MediaSet.h>
Inheritance diagram for zypp::source::MediaSet:
Public Member Functions | |
MediaSet (const Source_Ref &source_r) | |
~MediaSet () | |
media::MediaAccessId | getMediaAccessId (media::MediaNr medianr, bool no_attach=false) |
Get the media access ID to specified media. | |
void | redirect (media::MediaNr medianr, media::MediaAccessId media_id) |
Redirect specified media to a new MediaId. | |
void | reattach (const Pathname &attach_point) |
Reattach the source if it is not mounted, but downloaded, to different directory. | |
void | reset () |
Reset the handles to the medias. | |
void | release () |
Release all medias in the set. | |
Protected Types | |
typedef std::map< media::MediaNr, media::MediaAccessId > | MediaMap |
Protected Member Functions | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload to realize stream output. | |
Url | rewriteUrl (const Url &url_r, const media::MediaNr medianr) |
Rewrite the URL according to media number. | |
Protected Attributes | |
MediaMap | medias |
Mapping between each CD and Media Access ID. | |
Source_Ref | _source |
Refference to the source. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const MediaSet &obj) |
Definition at line 38 of file MediaSet.h.
|
Definition at line 70 of file MediaSet.h. |
|
Definition at line 32 of file MediaSet.cc. References _source. |
|
Definition at line 36 of file MediaSet.cc. References zypp::media::MediaManager::close(), zypp::media_mgr, medias, MIL, and release(). |
|
Get the media access ID to specified media.
Definition at line 131 of file MediaSet.cc. References zypp::media::MediaManager::attach(), zypp::media::MediaManager::isAttached(), zypp::media_mgr, and medias. |
|
Redirect specified media to a new MediaId.
Definition at line 49 of file MediaSet.cc. References zypp::media::MediaManager::close(), DBG, zypp::media::MediaManager::isOpen(), zypp::media_mgr, and medias. |
|
Reattach the source if it is not mounted, but downloaded, to different directory.
Definition at line 78 of file MediaSet.cc. References zypp::media::MediaManager::attach(), zypp::Url::getScheme(), zypp::media_mgr, medias, zypp::media::MediaManager::release(), zypp::media::MediaManager::setAttachPrefix(), zypp::media::MediaManager::url(), and url. |
|
Reset the handles to the medias.
Definition at line 94 of file MediaSet.cc. References zypp::media::MediaManager::close(), DBG, zypp::media::MediaManager::isOpen(), zypp::media_mgr, and medias. |
|
Release all medias in the set.
Definition at line 113 of file MediaSet.cc. References zypp::media::MediaManager::isAttached(), zypp::media_mgr, medias, MIL, and zypp::media::MediaManager::release(). Referenced by ~MediaSet(). |
|
Overload to realize stream output.
Reimplemented from zypp::base::ReferenceCounted. Definition at line 208 of file MediaSet.cc. |
|
Rewrite the URL according to media number.
Definition at line 164 of file MediaSet.cc. References DBG, zypp::Url::getPathName(), zypp::Url::getQueryParam(), zypp::Url::getScheme(), zypp::str::numstring(), zypp::Url::setPathName(), zypp::Url::setQueryParam(), and url. |
|
Stream output Definition at line 83 of file MediaSet.h. |
|
Mapping between each CD and Media Access ID.
Definition at line 72 of file MediaSet.h. Referenced by getMediaAccessId(), reattach(), redirect(), release(), reset(), and ~MediaSet(). |
|
Refference to the source.
Definition at line 74 of file MediaSet.h. Referenced by MediaSet(). |