libzypp  17.25.2
Downloader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
10 #ifndef ZYPP_SOURCE_YUM_DOWNLOADER
11 #define ZYPP_SOURCE_YUM_DOWNLOADER
12 
13 #include <zypp/Url.h>
14 #include <zypp/Pathname.h>
15 #include <zypp/Fetcher.h>
16 #include <zypp/OnMediaLocation.h>
17 #include <zypp/MediaSetAccess.h>
18 #include <zypp/ProgressData.h>
19 #include <zypp/RepoInfo.h>
20 #include <zypp/RepoStatus.h>
21 #include <zypp/repo/Downloader.h>
22 
23 namespace zypp
24 {
25  namespace repo
26  {
27  namespace yum
28  {
41  {
42  public:
43 
52  Downloader( const RepoInfo & info_r, const Pathname & deltaDir_r = Pathname() );
53 
61  void download( MediaSetAccess & media_r,
62  const Pathname & destDir_r,
63  const ProgressData::ReceiverFnc & progress_r = ProgressData::ReceiverFnc() ) override;
64 
68  RepoStatus status( MediaSetAccess & media_r ) override;
69 
70  private:
71  class Impl;
72  friend class Impl;
74  };
75 
76  } // ns yum
77  } // ns source
78 } // ns zypp
79 
80 #endif
zypp::RepoStatus
Track changing files or directories.
Definition: RepoStatus.h:39
RepoStatus.h
zypp::repo::yum::Downloader
Downloader for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be do...
Definition: Downloader.h:41
zypp::RepoInfo
What is known about a repository.
Definition: RepoInfo.h:72
zypp::repo::Downloader::Downloader
Downloader()
Constructor.
Definition: Downloader.cc:26
zypp::repo::Downloader
Downloader base class.
Definition: Downloader.h:33
Pathname.h
OnMediaLocation.h
Url.h
zypp::repo::yum::Downloader::Impl
Helper filtering the files offered by a RepomdFileReader.
Definition: Downloader.cc:84
RepoInfo.h
zypp::repo::yum::Downloader::download
void download(MediaSetAccess &media_r, const Pathname &destDir_r, const ProgressData::ReceiverFnc &progress_r=ProgressData::ReceiverFnc()) override
Download metadata to a local directory.
Definition: Downloader.cc:182
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::repo::yum::Downloader::_deltaDir
Pathname _deltaDir
Definition: Downloader.h:73
zypp::repo::yum::Downloader::status
RepoStatus status(MediaSetAccess &media_r) override
Status of the remote repository.
Definition: Downloader.cc:198
zypp::ProgressData::ReceiverFnc
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition: ProgressData.h:139
ProgressData.h
Downloader.h
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:45
zypp::MediaSetAccess
Media access layer responsible for handling files distributed on a set of media with media change and...
Definition: MediaSetAccess.h:81
MediaSetAccess.h
Fetcher.h