Imported Upstream version 15.0.0
[platform/upstream/libzypp.git] / zypp / RepoInfo.h
index 7ddcc7c..be80cf4 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "zypp/Url.h"
 #include "zypp/Locale.h"
-#include "zypp/TriBool.h"
 #include "zypp/repo/RepoType.h"
 #include "zypp/repo/RepoVariables.h"
 
@@ -155,10 +154,6 @@ namespace zypp
        * Clears current base URL list and adds \a url.
        */
       void setBaseUrl( const Url &url );
-      /**
-       * Clears current base URL list and adds an \ref url_set.
-       */
-      void setBaseUrls( url_set urls );
 
       /**
        * \short Repository path
@@ -247,62 +242,50 @@ namespace zypp
        */
       void setPackagesPath( const Pathname &path );
 
-
-      /** Whether default signature checking should be performed for this repo.
+      /**
+       * \short Whether to check or not this repository with gpg
        *
-       * This will turn on \ref repoGpgCheck for signed repos and
-       * \ref pkgGpgCheck for unsigned ones or if \ref repoGpgCheck is off.
+       * \note This is a just a hint to the application and can
+       * be ignored.
        *
-       * The default is \c true but may be overwritten by \c zypp.conf or a \ref .repo file.
        */
       bool gpgCheck() const;
-      /** Set the value for \ref gpgCheck (or \c indeterminate to use the default). */
-      void setGpgCheck( TriBool value_r );
-      /** \overload \deprecated legacy and for squid */
-      void setGpgCheck( bool value_r );
-
-      /** Whether the signature of repo metadata should be checked for this repo.
-       * The default is defined by \ref gpgCheck but may be overwritten by \c zypp.conf or a \ref .repo file.
-       */
-      bool repoGpgCheck() const;
-      /** Set the value for \ref repoGpgCheck (or \c indeterminate to use the default). */
-      void setRepoGpgCheck( TriBool value_r );
-
-      /** Whether the signature of rpm packages should be checked for this repo.
-       * The default is defined by \ref gpgCheck but may be overwritten by \c zypp.conf or a \ref .repo file.
+      /**
+       * \short Whether to check or not this repository with gpg
+       *
+       * \param check true (check) or false (dont'check)
+       *
+       * \note This is a just a hint to the application and can
+       * be ignored.
+       *
        */
-      bool pkgGpgCheck() const;
-      /** Set the value for \ref pkgGpgCheck (or \c indeterminate to use the default). */
-      void setPkgGpgCheck( TriBool value_r );
+      void setGpgCheck( bool check );
 
-      /** Whether the repo metadata are signed and successfully validated or \c indeterminate if unsigned.
-       * The value is usually set by \ref repo::Downloader when retrieving the metadata.
+      /**
+       * \short Key to use for gpg checking of this repository
+       *
+       * \param url Url to the key in ASCII armored format
+       *
+       * \note This is a just a hint to the application and can
+       * be ignored.
+       *
        */
-      TriBool validRepoSignature() const;
-      /** Set the value for \ref validRepoSignature (or \c indeterminate if unsigned). */
-      void setValidRepoSignature( TriBool value_r );
-
-
-      /** Whether gpgkey URLs are defined */
-      bool gpgKeyUrlsEmpty() const;
-      /** Number of gpgkey URLs defined */
-      urls_size_type gpgKeyUrlsSize() const;
-
-      /** The list of gpgkey URLs defined for this repo */
-      url_set gpgKeyUrls() const;
-      /** The list of raw gpgkey URLs defined for this repo (no variables replaced) */
-      url_set rawGpgKeyUrls() const;
-      /** Set a list of gpgkey URLs defined for this repo */
-      void setGpgKeyUrls( url_set urls );
-
-      /** (leagcy API) The 1st gpgkey URL defined for this repo */
       Url gpgKeyUrl() const;
-      /** (leagcy API) The 1st raw gpgkey URL defined for this repo (no variables replaced) */
+      /**
+       * The raw gpgKeyUrl (no variables replaced).
+       */
       Url rawGpgKeyUrl() const;
-      /** (leagcy API) Set the gpgkey URL defined for this repo */
+      /**
+       * \short Key to use for gpg checking of this repository
+       *
+       * \param url Url to the key in ASCII armored format
+       *
+       * \note This is a just a hint to the application and can
+       * be ignored.
+       *
+       */
       void setGpgKeyUrl( const Url &gpgkey );
 
-
       /**
        * \short Whether packages downloaded from this repository will be kept in local cache
        */
@@ -396,6 +379,13 @@ namespace zypp
       LocaleSet getLicenseLocales() const;
       //@}
 
+      /** \name Repository global unique id
+       *
+       *
+       */
+      //@{
+      //@}
+
     public:
       /**
        * Write a human-readable representation of this RepoInfo object
@@ -421,10 +411,6 @@ namespace zypp
 
       class Impl;
     private:
-      friend class RepoManager;
-      /** Raw values for RepoManager */
-      void getRawGpgChecks( TriBool & g_r, TriBool & r_r, TriBool & p_r ) const;
-
       /** Pointer to implementation */
       RWCOW_pointer<Impl> _pimpl;
   };