libzypp  10.5.0
zypp::repo::Downloader Class Reference

Downloader base class. More...

#include <Downloader.h>

Inheritance diagram for zypp::repo::Downloader:

List of all members.

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 RepoInforepoInfo () const

Private Attributes

RepoInfo _repoinfo

Detailed Description

Downloader base class.

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.


Constructor & Destructor Documentation

zypp::repo::Downloader::Downloader ( )

Constructor.

Definition at line 28 of file Downloader.cc.

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

C-tor associating the downloader with a RepoInfo.

Definition at line 31 of file Downloader.cc.

zypp::repo::Downloader::~Downloader ( ) [virtual]

Definition at line 34 of file Downloader.cc.


Member Function Documentation

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

Download metadata to a local directory.

Parameters:
mediaMedia access to the repository url
dest_dirLocal destination directory
progressprogress receiver

Reimplemented in zypp::repo::yum::Downloader, and zypp::repo::susetags::Downloader.

Definition at line 44 of file Downloader.cc.

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

Status of the remote repository.

Reimplemented in zypp::repo::yum::Downloader, and zypp::repo::susetags::Downloader.

Definition at line 38 of file Downloader.cc.

const RepoInfo& zypp::repo::Downloader::repoInfo ( ) const [inline]

Definition at line 58 of file Downloader.h.


Member Data Documentation

Definition at line 61 of file Downloader.h.


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