libzypp
15.28.6
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_SOURCE_SUSETAGS_DOWNLOADER
11
#define ZYPP_SOURCE_SUSETAGS_DOWNLOADER
12
13
#include "
zypp/Url.h
"
14
#include "
zypp/Pathname.h
"
15
#include "
zypp/ProgressData.h
"
16
#include "
zypp/RepoInfo.h
"
17
#include "
zypp/RepoStatus.h
"
18
#include "
zypp/MediaSetAccess.h
"
19
#include "
zypp/repo/Downloader.h
"
20
#include "
zypp/parser/susetags/ContentFileReader.h
"
21
22
namespace
zypp
23
{
24
namespace
repo
25
{
26
namespace
susetags
27
{
28
34
class
Downloader
:
public
repo::Downloader
35
{
36
public
:
45
Downloader
(
const
RepoInfo
&info,
const
Pathname &delta_dir = Pathname() );
46
54
void
download
(
MediaSetAccess
&media,
55
const
Pathname &dest_dir,
56
const
ProgressData::ReceiverFnc
& progress =
ProgressData::ReceiverFnc
() );
60
RepoStatus
status
(
MediaSetAccess
&media );
61
65
void
consumeIndex
(
const
parser::susetags::RepoIndex_Ptr & data_r );
66
67
private
:
68
parser::susetags::RepoIndex_Ptr
_repoindex
;
69
Pathname
_delta_dir
;
70
};
71
72
}
// ns susetags
73
}
// ns source
74
}
// ns zypp
75
76
#endif
Pathname.h
ProgressData.h
zypp::RepoInfo
What is known about a repository.
Definition:
RepoInfo.h:72
zypp::repo::susetags::Downloader::_repoindex
parser::susetags::RepoIndex_Ptr _repoindex
Definition:
Downloader.h:68
zypp::repo::susetags::Downloader::consumeIndex
void consumeIndex(const parser::susetags::RepoIndex_Ptr &data_r)
Content file parser consumer.
Definition:
Downloader.cc:212
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
Url.h
zypp::repo::susetags::Downloader
Downloader for SUSETags (YaST2) repositories Encapsulates all the knowledge of which files have to be...
Definition:
Downloader.h:34
zypp::repo::Downloader::Downloader
Downloader()
Constructor.
Definition:
Downloader.cc:26
RepoStatus.h
ContentFileReader.h
zypp::repo::susetags::Downloader::download
void download(MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Download metadata to a local directory.
Definition:
Downloader.cc:57
zypp::repo::susetags::Downloader::status
RepoStatus status(MediaSetAccess &media)
Status of the remote repository.
Definition:
Downloader.cc:36
MediaSetAccess.h
zypp::RepoStatus
Track changing files or directories.
Definition:
RepoStatus.h:38
zypp::repo::Downloader
Downloader base class.
Definition:
Downloader.h:32
RepoInfo.h
zypp::repo::susetags::Downloader::_delta_dir
Pathname _delta_dir
Definition:
Downloader.h:69
zypp::MediaSetAccess
Media access layer responsible for handling files distributed on a set of media with media change and...
Definition:
MediaSetAccess.h:77
zypp
repo
susetags
Downloader.h
Generated by
1.8.6