Imported Upstream version 17.22.0
[platform/upstream/libzypp.git] / zypp / repo / yum / Downloader.h
index f34b42b..591c9f4 100644 (file)
@@ -19,7 +19,6 @@
 #include "zypp/RepoInfo.h"
 #include "zypp/RepoStatus.h"
 #include "zypp/repo/Downloader.h"
-#include "zypp/repo/yum/ResourceType.h"
 
 namespace zypp
 {
@@ -41,7 +40,7 @@ namespace zypp
       class Downloader : public repo::Downloader
       {
       public:
-         
+
         /**
          * \short Constructor from the repository information
          *
@@ -50,33 +49,28 @@ namespace zypp
          *
          * \param info Repository information
          */
-        Downloader( const RepoInfo &info , const Pathname &delta_dir = Pathname());
+        Downloader( const RepoInfo & info_r, const Pathname & deltaDir_r = Pathname() );
 
         /**
          * \short Download metadata to a local directory
          *
          * \param media Media access to the repository url
-         * \param dest_dir Local destination directory
+         * \param destDir Local destination directory
          * \param progress progress receiver
          */
-        void download( MediaSetAccess &media,
-                       const Pathname &dest_dir,
-                       const ProgressData::ReceiverFnc & progress = ProgressData::ReceiverFnc() );
-        
+        void download( MediaSetAccess & media_r,
+                       const Pathname & destDir_r,
+                       const ProgressData::ReceiverFnc & progress_r = ProgressData::ReceiverFnc() ) override;
+
         /**
          * \short Status of the remote repository
          */
-        RepoStatus status( MediaSetAccess &media );
-        
-       protected:
-        bool repomd_Callback( const OnMediaLocation &loc, const ResourceType &dtype );
-        bool patches_Callback( const OnMediaLocation &loc, const std::string &id );
-       private:
-        Pathname _dest_dir;
-        Pathname _delta_dir;
-        std::list<OnMediaLocation> _patches_files;
-        
-        MediaSetAccess *_media_ptr;
+        RepoStatus status( MediaSetAccess & media_r ) override;
+
+      private:
+       class Impl;
+       friend class Impl;
+       Pathname _deltaDir;
       };
 
     } // ns yum