12 #ifndef ZYPP2_REPOSITORYINFO_H
13 #define ZYPP2_REPOSITORYINFO_H
96 typedef transform_iterator<repo::RepoVariablesUrlReplacer, url_set::const_iterator>
urls_const_iterator;
165 Pathname
path()
const;
339 virtual std::ostream &
dumpOn( std::ostream & str )
const;
344 virtual std::ostream &
dumpAsIniOn( std::ostream & str )
const;
349 virtual std::ostream &
dumpAsXMLOn(std::ostream & str)
const;
358 virtual std::ostream &
dumpAsXMLOn( std::ostream & str,
const std::string & content )
const;
381 #endif // ZYPP2_REPOSITORYINFO_H
LocaleSet getLicenseLocales() const
Return the locales the license is available for.
std::string name() const
Repository short label.
std::string targetDistribution() const
Distribution for which is this repository meant.
void setGpgKeyUrl(const Url &gpgkey)
Key to use for gpg checking of this repository.
static unsigned defaultPriority()
The default priority (99).
virtual std::ostream & dumpAsIniOn(std::ostream &str) const
Write this RepoInfo object into str in a .repo file format.
void setPriority(unsigned newval_r)
Set repository priority for solver.
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
shared_ptr< RepoInfo > RepoInfo_Ptr
void setMirrorListUrl(const Url &url)
Set mirror list url.
virtual std::ostream & dumpAsXMLOn(std::ostream &str) const
Write an XML representation of this RepoInfo object.
urls_const_iterator baseUrlsBegin() const
iterator that points at begin of repository urls
std::string getLicense(const Locale &lang_r=Locale())
Return the best license for the current (or a specified) locale.
Pathname metadataPath() const
Path where this repo metadata was read from.
void setProbedType(const repo::RepoType &t) const
This allows to adjust the RepoType lazy, from NONE to some probed value, even for const objects...
What is known about a repository.
void setBaseUrl(const Url &url)
Clears current base URL list and adds url.
urls_const_iterator baseUrlsEnd() const
iterator that points at end of repository urls
shared_ptr< const RepoInfo > RepoInfo_constPtr
Pathname packagesPath() const
Path where this repo packages are cached.
unsigned priority() const
Repository priority for solver.
transform_iterator< repo::RepoVariablesUrlReplacer, url_set::const_iterator > urls_const_iterator
bool keepPackages() const
Whether packages downloaded from this repository will be kept in local cache.
bool needToAcceptLicense() const
Whether the repo license has to be accepted, e.g.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Url mirrorListUrl() const
Url of a file which contains a list of Urls If empty, the base url will be used.
Provides API related macros.
void setPath(const Pathname &path)
set the product path.
void setService(const std::string &name)
sets service which added this repository
void setMetadataPath(const Pathname &path)
set the path where the local metadata is stored
bool gpgCheck() const
Whether to check or not this repository with gpg.
void setType(const repo::RepoType &t)
set the repository type
bool baseUrlSet() const
whether there are manualy configured repository urls
void setKeepPackages(bool keep)
Set if packaqes downloaded from this repository will be kept in local cache.
std::string service() const
Gets name of the service to which this repository belongs or empty string if it has been added manual...
std::tr1::unordered_set< Locale > LocaleSet
void addBaseUrl(const Url &url)
Add a base url.
void setPackagesPath(const Pathname &path)
set the path where the local packages are stored
bool baseUrlsEmpty() const
whether repository urls are available
repo::RepoType type() const
Type of repository,.
url_set::size_type urls_size_type
void setTargetDistribution(const std::string &targetDistribution)
Sets the distribution for which is this repository meant.
std::set< Url > baseUrls() const
A Url under which the metadata are located, or a set of mirrors.
bool hasLicense() const
Whether there is a license associated with the repo.
Url gpgKeyUrl() const
Key to use for gpg checking of this repository.
Url url() const
Pars pro toto: The first repository url.
void setGpgCheck(bool check)
Whether to check or not this repository with gpg.
static const RepoInfo noRepo
Represents no Repository (one with an empty alias).
std::list< RepoInfo > RepoInfoList
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.
Base class implementing common features of RepoInfo and ServiceInfo.
urls_size_type baseUrlsSize() const
number of repository urls
Pathname path() const
Repository path.
virtual std::ostream & dumpOn(std::ostream &str) const
Write a human-readable representation of this RepoInfo object into the str stream.
RW_pointer supporting 'copy on write' functionality.
Repository type enumeration.
friend std::ostream & operator<<(std::ostream &str, const RepoInfo &obj)