libzypp
14.29.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
"
18
#include "
zypp/repo/MediaInfoDownloader.h
"
19
#include "
zypp/base/UserRequestException.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
}
34
Downloader::~Downloader
()
35
{
36
}
37
38
RepoStatus
Downloader::status
(
MediaSetAccess
&media )
39
{
40
WAR
<<
"Non implemented"
<< endl;
41
return
RepoStatus
();
42
}
43
44
void
Downloader::download
(
MediaSetAccess
&media,
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
std
Definition:
Arch.h:330
zypp::RepoInfo
What is known about a repository.
Definition:
RepoInfo.h:66
zypp::ProgressData::ReceiverFnc
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition:
ProgressData.h:139
Downloader.h
zypp::repo::Downloader::~Downloader
virtual ~Downloader()
Definition:
Downloader.cc:34
WAR
#define WAR
Definition:
Logger.h:48
UserRequestException.h
Logger.h
zypp::repo::Downloader::download
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
Function.h
zypp::RepoStatus
Track changing files or directories.
Definition:
RepoStatus.h:38
zypp::repo::Downloader::status
virtual RepoStatus status(MediaSetAccess &media)
Status of the remote repository.
Definition:
Downloader.cc:38
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:1
MediaInfoDownloader.h
String.h
zypp::MediaSetAccess
Media access layer responsible for handling files distributed on a set of media with media change and...
Definition:
MediaSetAccess.h:77
Date.h
zypp
repo
Downloader.cc
Generated on Thu Sep 25 2014 20:37:50 for libzypp by
1.8.8