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 );
 
  350      bool gpgCheck() 
const;
 
  352      void setGpgCheck( 
TriBool value_r );
 
  354      void setGpgCheck( 
bool value_r );
 
  357      bool repoGpgCheck() 
const;
 
  359      bool repoGpgCheckIsMandatory() 
const;
 
  361      void setRepoGpgCheck( 
TriBool value_r );
 
  364      bool pkgGpgCheck() 
const;
 
  366      bool pkgGpgCheckIsMandatory() 
const;
 
  368      void setPkgGpgCheck( 
TriBool value_r );
 
  373      TriBool validRepoSignature() 
const;
 
  375      void setValidRepoSignature( 
TriBool value_r );
 
  393      bool setGpgCheck( GpgCheck mode_r );
 
  398      bool gpgKeyUrlsEmpty() 
const;
 
  400      urls_size_type gpgKeyUrlsSize() 
const;
 
  403      url_set gpgKeyUrls() 
const;
 
  405      url_set rawGpgKeyUrls() 
const;
 
  407      void setGpgKeyUrls( url_set urls );
 
  410      Url gpgKeyUrl() 
const;
 
  412      Url rawGpgKeyUrl() 
const;
 
  414      void setGpgKeyUrl( 
const Url &gpgkey );
 
  417      Pathname provideKey(
const std::string &keyID_r, 
const Pathname &targetDirectory_r ) 
const;
 
  422      bool keepPackages() 
const;
 
  432      void setKeepPackages( 
bool keep );
 
  438      bool effectiveKeepPackages() 
const;
 
  444      std::string service() 
const;
 
  448      void setService( 
const std::string& name );
 
  453      std::string targetDistribution() 
const;
 
  459      void setTargetDistribution(
const std::string & targetDistribution);
 
  463      const std::set<std::string> & contentKeywords() 
const;
 
  466      void addContent( 
const std::string & keyword_r );
 
  468      template <
class TIterator>
 
  472      template <
class TContainer>
 
  479      bool hasContent() 
const;
 
  481      bool hasContent( 
const std::string & keyword_r ) 
const;
 
  483      template <
class TIterator>
 
  485      { 
for_( it, begin_r, end_r ) 
if ( ! 
hasContent( *it ) ) 
return false; 
return true; }
 
 
  487      template <
class TContainer>
 
  489      { 
return hasContentAll( container_r.begin(), container_r.end() ); }
 
 
  491      template <
class TIterator>
 
  493      { 
for_( it, begin_r, end_r ) 
if ( 
hasContent( *it ) ) 
return true; 
return false; }
 
 
  495      template <
class TContainer>
 
  497      { 
return hasContentAny( container_r.begin(), container_r.end() ); }
 
 
  513      bool hasLicense() 
const;
 
  515      bool hasLicense( 
const std::string & name_r ) 
const;
 
  520      bool needToAcceptLicense() 
const;
 
  522      bool needToAcceptLicense( 
const std::string & name_r ) 
const;
 
  525      std::string getLicense( 
const Locale & lang_r = 
Locale() ) 
const;
 
  527      std::string getLicense( 
const Locale & lang_r = 
Locale() ); 
 
  529      std::string getLicense( 
const std::string & name_r, 
const Locale & lang_r = 
Locale() ) 
const;
 
  537      LocaleSet getLicenseLocales( 
const std::string & name_r ) 
const;
 
  544      bool requireStatusWithMediaFile () 
const;
 
  551      std::ostream & 
dumpOn( std::ostream & 
str ) 
const override;
 
  557      std::ostream & dumpAsIniOn( std::ostream & 
str ) 
const override;
 
  567      std::ostream & 
dumpAsXmlOn( std::ostream & 
str, 
const std::string & content = 
"" ) 
const override;
 
  579      std::string repoStatusString() 
const;
 
 
'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.