zypp::repo::yum::Downloader Class Reference

Downloader for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk. More...

#include <Downloader.h>

Inheritance diagram for zypp::repo::yum::Downloader:
[legend]

List of all members.

Public Member Functions

 Downloader (const RepoInfo &info)
 Constructor from the repository information.
void download (MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
 Download metadata to a local directory.
RepoStatus status (MediaSetAccess &media)
 Status of the remote repository.

Protected Member Functions

bool repomd_Callback (const OnMediaLocation &loc, const ResourceType &dtype)
bool patches_Callback (const OnMediaLocation &loc, const std::string &id)

Private Attributes

Pathname _dest_dir
std::list< OnMediaLocation_patches_files
MediaSetAccess_media_ptr


Detailed Description

Downloader for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk.

 MediaSetAccess media(url);
 Downloader yum(path);
 yum.download( media, "localdir");

Definition at line 41 of file Downloader.h.


Constructor & Destructor Documentation

zypp::repo::yum::Downloader::Downloader ( const RepoInfo info  ) 

Constructor from the repository information.

The repository information allows more context to be given to the user when something fails.

Parameters:
info Repository information

Reimplemented from zypp::repo::Downloader.

Definition at line 36 of file Downloader.cc.


Member Function Documentation

void zypp::repo::yum::Downloader::download ( MediaSetAccess media,
const Pathname &  dest_dir,
const ProgressData::ReceiverFnc progress = ProgressData::ReceiverFnc() 
) [virtual]

RepoStatus zypp::repo::yum::Downloader::status ( MediaSetAccess media  )  [virtual]

Status of the remote repository.

Reimplemented from zypp::repo::Downloader.

Definition at line 42 of file Downloader.cc.

References zypp::MediaSetAccess::provideFile(), and zypp::repo::Downloader::repoInfo().

bool zypp::repo::yum::Downloader::repomd_Callback ( const OnMediaLocation loc,
const ResourceType dtype 
) [protected]

bool zypp::repo::yum::Downloader::patches_Callback ( const OnMediaLocation loc,
const std::string &  id 
) [protected]

Referenced by repomd_Callback().


Member Data Documentation

Definition at line 75 of file Downloader.h.

Referenced by download(), and repomd_Callback().

Definition at line 76 of file Downloader.h.

Definition at line 78 of file Downloader.h.

Referenced by download(), and repomd_Callback().


The documentation for this class was generated from the following files:

doxygen