12#ifndef ZYPP2_REPOSITORYINFO_H
13#define ZYPP2_REPOSITORYINFO_H
149 url_set baseUrls()
const;
153 url_set rawBaseUrls()
const;
162 void addBaseUrl(
Url url );
166 void setBaseUrl(
Url url );
170 void setBaseUrls( url_set urls );
197 void setPath(
const Pathname &path );
202 Url mirrorListUrl()
const;
206 Url rawMirrorListUrl()
const;
211 void setMirrorListUrl(
const Url &
url );
213 void setMirrorListUrls( url_set urls );
216 void setMetalinkUrl(
const Url &
url );
218 void setMetalinkUrls( url_set urls );
271 void setMetadataPath(
const Pathname &path );
274 bool usesAutoMetadataPaths()
const;
285 void setPackagesPath(
const Pathname &path );
345 bool gpgCheck()
const;
347 void setGpgCheck(
TriBool value_r );
349 void setGpgCheck(
bool value_r );
352 bool repoGpgCheck()
const;
354 bool repoGpgCheckIsMandatory()
const;
356 void setRepoGpgCheck(
TriBool value_r );
359 bool pkgGpgCheck()
const;
361 bool pkgGpgCheckIsMandatory()
const;
363 void setPkgGpgCheck(
TriBool value_r );
368 TriBool validRepoSignature()
const;
370 void setValidRepoSignature(
TriBool value_r );
388 bool setGpgCheck( GpgCheck mode_r );
393 bool gpgKeyUrlsEmpty()
const;
395 urls_size_type gpgKeyUrlsSize()
const;
398 url_set gpgKeyUrls()
const;
400 url_set rawGpgKeyUrls()
const;
402 void setGpgKeyUrls( url_set urls );
405 Url gpgKeyUrl()
const;
407 Url rawGpgKeyUrl()
const;
409 void setGpgKeyUrl(
const Url &gpgkey );
412 Pathname provideKey(
const std::string &keyID_r,
const Pathname &targetDirectory_r )
const;
417 bool keepPackages()
const;
427 void setKeepPackages(
bool keep );
433 std::string service()
const;
437 void setService(
const std::string& name );
442 std::string targetDistribution()
const;
448 void setTargetDistribution(
const std::string & targetDistribution);
452 const std::set<std::string> & contentKeywords()
const;
455 void addContent(
const std::string & keyword_r );
457 template <
class TIterator>
461 template <
class TContainer>
468 bool hasContent()
const;
470 bool hasContent(
const std::string & keyword_r )
const;
472 template <
class TIterator>
474 {
for_( it, begin_r, end_r )
if ( !
hasContent( *it ) )
return false;
return true; }
476 template <
class TContainer>
478 {
return hasContentAll( container_r.begin(), container_r.end() ); }
480 template <
class TIterator>
482 {
for_( it, begin_r, end_r )
if (
hasContent( *it ) )
return true;
return false; }
484 template <
class TContainer>
486 {
return hasContentAny( container_r.begin(), container_r.end() ); }
502 bool hasLicense()
const;
504 bool hasLicense(
const std::string & name_r )
const;
509 bool needToAcceptLicense()
const;
511 bool needToAcceptLicense(
const std::string & name_r )
const;
514 std::string getLicense(
const Locale & lang_r =
Locale() )
const;
516 std::string getLicense(
const Locale & lang_r =
Locale() );
518 std::string getLicense(
const std::string & name_r,
const Locale & lang_r =
Locale() )
const;
526 LocaleSet getLicenseLocales(
const std::string & name_r )
const;
533 bool requireStatusWithMediaFile ()
const;
540 std::ostream &
dumpOn( std::ostream &
str )
const override;
546 std::ostream & dumpAsIniOn( std::ostream &
str )
const override;
556 std::ostream &
dumpAsXmlOn( std::ostream &
str,
const std::string & content =
"" )
const override;
'Language[_Country]' codes.
bool hasContentAny(const TContainer &container_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
RepoInfo(RepoInfo &&)=default
url_set::size_type urls_size_type
shared_ptr< RepoInfo > RepoInfo_Ptr
void addContentFrom(TIterator begin_r, TIterator end_r)
GpgCheck
Some predefined settings.
bool baseUrlsEmpty() const
whether repository urls are available
bool hasContent() const
Check for content keywords.
transform_iterator< repo::RepoVariablesUrlReplacer, url_set::const_iterator > urls_const_iterator
std::list< RepoInfo > RepoInfoList
RepoInfo & operator=(const RepoInfo &)=default
static unsigned noPriority()
The least priority (unsigned(-1)).
urls_size_type baseUrlsSize() const
number of repository urls
Url url() const
Pars pro toto: The first repository url.
static const RepoInfo noRepo
Represents no Repository (one with an empty alias).
urls_const_iterator baseUrlsEnd() const
iterator that points at end of repository urls
bool baseUrlSet() const
Whether there are manualy configured repository urls.
bool hasContentAny(TIterator begin_r, TIterator end_r) const
unsigned priority() const
Repository priority for solver.
static unsigned defaultPriority()
The default priority (99).
void setPriority(unsigned newval_r)
Set repository priority for solver.
RepoInfo(const RepoInfo &)=default
void addContentFrom(const TContainer &container_r)
This is an overloaded member function, provided for convenience. It differs from the above function o...
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
urls_const_iterator baseUrlsBegin() const
iterator that points at begin of repository urls
bool hasContentAll(const TContainer &container_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
shared_ptr< const RepoInfo > RepoInfo_constPtr
bool hasContentAll(TIterator begin_r, TIterator end_r) const
void addContent(const std::string &keyword_r)
Add content keywords.
RepoInfo & operator=(RepoInfo &&)=default
Base class implementing common features of RepoInfo and ServiceInfo.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Locale > LocaleSet
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
RW_pointer supporting 'copy on write' functionality.
Repository type enumeration.
Provides API related macros.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.