libzypp 17.31.23
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-core/OnMediaLocation>
17#include <zypp/MediaSetAccess.h>
18#include <zypp-core/ui/ProgressData>
19#include <zypp/RepoInfo.h>
20#include <zypp/RepoStatus.h>
21#include <zypp/repo/Downloader.h>
22
23namespace 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
Media access layer responsible for handling files distributed on a set of media with media change and...
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition: progressdata.h:140
What is known about a repository.
Definition: RepoInfo.h:72
Track changing files or directories.
Definition: RepoStatus.h:41
Downloader base class.
Definition: Downloader.h:38
Downloader()
Constructor.
Definition: Downloader.cc:118
Downloader for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be do...
Definition: Downloader.h:41
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:186
RepoStatus status(MediaSetAccess &media_r) override
Status of the remote repository.
Definition: Downloader.cc:205
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
Helper filtering the files offered by a RepomdFileReader.
Definition: Downloader.cc:88