libzypp  13.10.6
Downloader.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
10 #include <fstream>
11 #include "zypp/base/String.h"
12 #include "zypp/base/Logger.h"
13 #include "zypp/base/Function.h"
14 
15 #include "zypp/Date.h"
16 
17 #include "Downloader.h"
20 
21 using namespace std;
22 
23 namespace zypp
24 {
25 namespace repo
26 {
27 
28 Downloader::Downloader()
29 {
30 }
31 Downloader::Downloader(const RepoInfo & repoinfo) : _repoinfo(repoinfo)
32 {
33 }
35 {
36 }
37 
39 {
40  WAR << "Non implemented" << endl;
41  return RepoStatus();
42 }
43 
45  const Pathname &dest_dir,
46  const ProgressData::ReceiverFnc & progress )
47 {
48  WAR << "Non implemented" << endl;
49 }
50 
51 }// ns repo
52 } // ns zypp
53 
54 
55 
What is known about a repository.
Definition: RepoInfo.h:66
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition: ProgressData.h:144
#define WAR
Definition: Logger.h:48
virtual void download(MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Download metadata to a local directory.
Definition: Downloader.cc:44
Local facts about a repository This class represents the status of a repository on the system...
Definition: RepoStatus.h:37
virtual RepoStatus status(MediaSetAccess &media)
Status of the remote repository.
Definition: Downloader.cc:38
Media access layer responsible for handling files distributed on a set of media with media change and...