libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Downloader.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
9
10
#ifndef ZYPP_REPO_DOWNLOADER
11
#define ZYPP_REPO_DOWNLOADER
12
13
#include "
zypp/Url.h
"
14
#include "
zypp/Pathname.h
"
15
#include "
zypp/ProgressData.h
"
16
#include "
zypp/RepoStatus.h
"
17
#include "
zypp/MediaSetAccess.h
"
18
#include "
zypp/Fetcher.h
"
19
#include "
zypp/RepoInfo.h
"
20
21
namespace
zypp
22
{
23
namespace
repo
24
{
32
class
Downloader
:
public
Fetcher
33
{
34
public
:
38
Downloader
();
40
Downloader
(
const
RepoInfo
& info);
41
virtual
~Downloader
();
42
50
virtual
void
download
(
MediaSetAccess
&media,
51
const
Pathname &dest_dir,
52
const
ProgressData::ReceiverFnc
& progress =
ProgressData::ReceiverFnc
() );
56
virtual
RepoStatus
status
(
MediaSetAccess
&media );
57
58
const
RepoInfo
&
repoInfo
()
const
{
return
_repoinfo
; }
59
60
private
:
61
RepoInfo
_repoinfo
;
62
};
63
}
// ns repo
64
}
// ns zypp
65
66
#endif
zypp
repo
Downloader.h
Generated by
1.8.1