#include <Source.h>
Inheritance diagram for zypp::Source_Ref:
Public Types | |
typedef source::SourceImpl | Impl |
typedef source::SourceImpl_Ptr | Impl_Ptr |
typedef unsigned long | NumericId |
Public Member Functions | |
Source_Ref () | |
Default ctor: noSource. | |
NumericId | numericId () const |
Runtime unique numeric Source Id. | |
Date | timestamp () const |
aproximate age of the source, can be used to determine if the source needs to be read again or not. | |
bool | resStoreInitialized () const |
Whether the ResStore is initialized. | |
const ResStore & | resolvables () const |
All resolvables provided by this source. | |
const ResStore | resolvables (zypp::Resolvable::Kind kind) const |
All resolvables of a given kind provided by this source. | |
const Pathname | providePackage (Package::constPtr package) |
const Pathname | provideFile (const Pathname &file_r, const unsigned media_nr=1) |
Provide a file to local filesystem. | |
const Pathname | provideDirTree (const Pathname &dir_r, const unsigned media_nr=1) |
const void | releaseFile (const Pathname &file_r, const unsigned media_nr=1) |
const void | releaseDir (const Pathname &dir_r, const unsigned media_nr=1, const bool recursive=false) |
const bool | enabled () const |
void | enable () |
void | disable () |
const bool | autorefresh () const |
void | setAutorefresh (const bool enable_r) |
void | refresh () |
void | storeMetadata (const Pathname &cache_dir_r) |
std::string | alias (void) const |
also for ZMD | |
void | setAlias (const std::string &alias_r) |
std::string | type (void) const |
string description of the source type, e.g. "YUM" or "YaST" | |
unsigned | numberOfMedia (void) const |
std::string | vendor (void) const |
from media.1/media | |
std::string | unique_id (void) const |
from media.1/media | |
void | changeMedia (const media::MediaId &media_r, const Pathname &path_r) |
Change the media of the source (in case original media is not available) The media must be ready-to-use (in the same form as when passing to SourceImpl constructor). | |
void | redirect (unsigned media_nr, const Url &new_url) |
Redirect the given media to the given URL instead of the standard one. | |
void | release () |
Release all medias attached by the source. | |
void | reattach (const Pathname &attach_point) |
Reattach the source if it is not mounted, but downloaded, to different directory. | |
media::MediaVerifierRef | verifier (unsigned media_nr) |
Provide a media verifier suitable for the given media number. | |
generic information get/set | |
std::string | id (void) const |
runtime-unique, not persistent, a "handle" for Pkg::, string?! | |
void | setId (const std::string id_r) |
unsigned | priority (void) const |
void | setPriority (unsigned p) |
unsigned | priorityUnsubscribed (void) const |
void | setPriorityUnsubscribed (unsigned p) |
bool | subscribed (void) const |
void | setSubscribed (bool s) |
const Pathname & | cacheDir (void) const |
const std::list< Pathname > | publicKeys () |
for ZMD | |
std::string | zmdName (void) const |
void | setZmdName (const std::string name_r) |
std::string | zmdDescription (void) const |
void | setZmdDescription (const std::string desc_r) |
for YaST | |
Url | url (void) const |
void | setUrl (const Url &url) |
required for the parse-metadata helper of libzypp-zmd-backend which gets local files to parse but the source is really remote. | |
bool | remote () const |
const Pathname & | path (void) const |
const bool | baseSource () const |
Static Public Attributes | |
static const Source_Ref | noSource |
A dummy Source (Id 0 ) providing nothing, doing nothing. | |
Private Member Functions | |
friend | base::SafeBool () const |
bool | boolTest () const |
SafeBool test. | |
Source_Ref (const Impl_Ptr &impl_r) | |
Factory ctor. | |
Private Attributes | |
Impl_Ptr | _pimpl |
Pointer to implementation. | |
Friends | |
class | SourceFactory |
Factory. | |
class | source::SourceImpl |
std::ostream & | operator<< (std::ostream &str, const Source_Ref &obj) |
bool | operator== (const Source_Ref &lhs, const Source_Ref &rhs) |
bool | operator< (const Source_Ref &lhs, const Source_Ref &rhs) |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator!= (const Source_Ref &lhs, const Source_Ref &rhs) |
Definition at line 60 of file Source.h.
|
|
|
|
|
|
|
Default ctor: noSource. Real Sources are to be created via SourceFactory. |
|
Factory ctor.
|
|
Runtime unique numeric Source Id.
Definition at line 54 of file Source.cc. References _pimpl. Referenced by zypp::ResObject::dumpOn(), and zypp::sourceTableAdd(). |
|
aproximate age of the source, can be used to determine if the source needs to be read again or not. (read as parse its metadata, not about downloading) Definition at line 95 of file Source.cc. References _pimpl. |
|
Whether the ResStore is initialized. If we know that noone has seen the resolvables yet, we can skip them too, eg. when deleting a source. (#174840) Definition at line 57 of file Source.cc. References _pimpl. |
|
All resolvables provided by this source.
Definition at line 60 of file Source.cc. References _pimpl. |
|
All resolvables of a given kind provided by this source.
Definition at line 63 of file Source.cc. References _pimpl. |
|
Definition at line 74 of file Source.cc. References _pimpl. |
|
Provide a file to local filesystem.
Definition at line 66 of file Source.cc. References _pimpl. Referenced by zypp::source::yum::YUMScriptImpl::do_script(), and zypp::source::yum::YUMScriptImpl::undo_script(). |
|
Definition at line 70 of file Source.cc. References _pimpl. |
|
Definition at line 77 of file Source.cc. References _pimpl. |
|
Definition at line 81 of file Source.cc. References _pimpl. |
|
Definition at line 86 of file Source.cc. References _pimpl. |
|
Definition at line 89 of file Source.cc. References _pimpl. |
|
Definition at line 92 of file Source.cc. References _pimpl. |
|
Definition at line 98 of file Source.cc. References _pimpl. |
|
Definition at line 101 of file Source.cc. References _pimpl. |
|
Definition at line 104 of file Source.cc. References _pimpl. |
|
Definition at line 107 of file Source.cc. References _pimpl. Referenced by zypp::SourceCache::storeSource(). |
|
also for ZMD
Definition at line 110 of file Source.cc. References _pimpl. Referenced by zypp::source::susetags::ProductMetadataParser::parse(), zypp::source::susetags::parsePackages(), zypp::source::susetags::parseSelection(), and zypp::SourceCache::storeSource(). |
|
Definition at line 113 of file Source.cc. References _pimpl. |
|
string description of the source type, e.g. "YUM" or "YaST"
Definition at line 116 of file Source.cc. References _pimpl. |
|
Definition at line 188 of file Source.cc. References _pimpl. |
|
from media.1/media
Definition at line 191 of file Source.cc. References _pimpl. Referenced by zypp::source::susetags::SuseTagsPackageImpl::vendor(). |
|
from media.1/media
Definition at line 197 of file Source.cc. References _pimpl. |
|
runtime-unique, not persistent, a "handle" for Pkg::, string?!
Definition at line 119 of file Source.cc. References _pimpl. |
|
Definition at line 122 of file Source.cc. References _pimpl. |
|
Definition at line 137 of file Source.cc. References _pimpl. Referenced by zypp::solver::detail::ResolverQueue::copy_queue_except_for_branch(), and zypp::solver::detail::ResolverContext::getSourcePriority(). |
|
Definition at line 140 of file Source.cc. References _pimpl. |
|
Definition at line 143 of file Source.cc. References _pimpl. Referenced by zypp::solver::detail::ResolverContext::getSourcePriority(). |
|
Definition at line 146 of file Source.cc. References _pimpl. |
|
Definition at line 149 of file Source.cc. References _pimpl. Referenced by zypp::solver::detail::ResolverContext::getSourcePriority(). |
|
Definition at line 152 of file Source.cc. References _pimpl. |
|
Definition at line 170 of file Source.cc. References _pimpl. |
|
Definition at line 194 of file Source.cc. References _pimpl. |
|
Definition at line 125 of file Source.cc. References _pimpl. |
|
Definition at line 128 of file Source.cc. References _pimpl. |
|
Definition at line 131 of file Source.cc. References _pimpl. |
|
Definition at line 134 of file Source.cc. References _pimpl. |
|
Definition at line 155 of file Source.cc. References _pimpl. Referenced by zypp::source::susetags::ProductMetadataParser::parse(), zypp::source::susetags::parsePackages(), zypp::source::susetags::parseSelection(), setUrl(), and zypp::SourceCache::storeSource(). |
|
required for the parse-metadata helper of libzypp-zmd-backend which gets local files to parse but the source is really remote.
|
|
Definition at line 161 of file Source.cc. References _pimpl. |
|
Definition at line 164 of file Source.cc. References _pimpl. Referenced by zypp::SourceCache::storeSource(). |
|
Definition at line 167 of file Source.cc. References _pimpl. Referenced by zypp::source::yum::YUMProductImpl::YUMProductImpl(). |
|
Change the media of the source (in case original media is not available) The media must be ready-to-use (in the same form as when passing to SourceImpl constructor).
Definition at line 173 of file Source.cc. References _pimpl. |
|
Redirect the given media to the given URL instead of the standard one.
Definition at line 176 of file Source.cc. References _pimpl. |
|
Release all medias attached by the source.
Definition at line 179 of file Source.cc. References _pimpl. |
|
Reattach the source if it is not mounted, but downloaded, to different directory.
Definition at line 182 of file Source.cc. References _pimpl. |
|
Provide a media verifier suitable for the given media number.
Definition at line 185 of file Source.cc. References _pimpl. |
|
|
|
SafeBool test.
|
|
Factory.
|
|
|
|
|
|
Equal if same implementation class. |
|
Order in std::conainer based on _pimpl. |
|
|
|
A dummy Source (Id
Definition at line 80 of file Source.h. Referenced by boolTest(), zypp::solver::detail::ResolverContext::collectCompareInfo(), zypp::SourceFactory::createFrom(), and zypp::detail::ResObjectImplIf::source(). |
|
Pointer to implementation.
Definition at line 238 of file Source.h. Referenced by alias(), autorefresh(), baseSource(), boolTest(), cacheDir(), changeMedia(), disable(), enable(), enabled(), id(), numberOfMedia(), numericId(), zypp::operator<<(), path(), priority(), priorityUnsubscribed(), provideDirTree(), provideFile(), providePackage(), publicKeys(), reattach(), redirect(), refresh(), release(), releaseDir(), releaseFile(), remote(), resolvables(), resStoreInitialized(), setAlias(), setAutorefresh(), setId(), setPriority(), setPriorityUnsubscribed(), setSubscribed(), setUrl(), setZmdDescription(), setZmdName(), storeMetadata(), subscribed(), timestamp(), type(), unique_id(), url(), vendor(), verifier(), zmdDescription(), and zmdName(). |