#include <Downloader.h>
Public Member Functions | |
Downloader () | |
Constructor. | |
Downloader (const RepoInfo &info) | |
C-tor associating the downloader with a RepoInfo. | |
virtual | ~Downloader () |
virtual void | download (MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
Download metadata to a local directory. | |
virtual RepoStatus | status (MediaSetAccess &media) |
Status of the remote repository. | |
const RepoInfo & | repoInfo () const |
Private Attributes | |
RepoInfo | _repoinfo |
a Downloader encapsulates all the knowledge of which files have to be downloaded to the local disk.
Definition at line 32 of file Downloader.h.
zypp::repo::Downloader::Downloader | ( | ) |
zypp::repo::Downloader::Downloader | ( | const RepoInfo & | info | ) |
C-tor associating the downloader with a RepoInfo.
Reimplemented in zypp::repo::susetags::Downloader, and zypp::repo::yum::Downloader.
Definition at line 31 of file Downloader.cc.
zypp::repo::Downloader::~Downloader | ( | ) | [virtual] |
Definition at line 34 of file Downloader.cc.
void zypp::repo::Downloader::download | ( | MediaSetAccess & | media, | |
const Pathname & | dest_dir, | |||
const ProgressData::ReceiverFnc & | progress = ProgressData::ReceiverFnc() | |||
) | [virtual] |
Download metadata to a local directory.
media | Media access to the repository url | |
dest_dir | Local destination directory | |
progress | progress receiver |
Reimplemented in zypp::repo::susetags::Downloader, and zypp::repo::yum::Downloader.
Definition at line 44 of file Downloader.cc.
References WAR.
RepoStatus zypp::repo::Downloader::status | ( | MediaSetAccess & | media | ) | [virtual] |
Status of the remote repository.
Reimplemented in zypp::repo::susetags::Downloader, and zypp::repo::yum::Downloader.
Definition at line 38 of file Downloader.cc.
References WAR.
const RepoInfo& zypp::repo::Downloader::repoInfo | ( | ) | const [inline] |
Definition at line 58 of file Downloader.h.
References _repoinfo.
Referenced by zypp::repo::yum::Downloader::download(), zypp::repo::susetags::Downloader::download(), zypp::repo::yum::Downloader::repomd_Callback(), zypp::repo::yum::Downloader::status(), and zypp::repo::susetags::Downloader::status().
RepoInfo zypp::repo::Downloader::_repoinfo [private] |