zypp::repo::susetags::Downloader Class Reference

#include <Downloader.h>

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

List of all members.

Public Member Functions

 Downloader (const Pathname &path)
void download (MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
RepoStatus status (MediaSetAccess &media)
void consumeIndex (const parser::susetags::RepoIndex_Ptr &data_r)
 Content file parser consumer.

Private Attributes

Pathname _path
parser::susetags::RepoIndex_Ptr _repoindex


Detailed Description

Downloader for SUSETags (YaST2) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk.

Definition at line 33 of file Downloader.h.


Constructor & Destructor Documentation

zypp::repo::susetags::Downloader::Downloader ( const Pathname &  path  ) 

Constructor

Parameters:
path Path to the repostory from the media

Definition at line 29 of file Downloader.cc.


Member Function Documentation

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

Download metadata to a local directory

Parameters:
media Media access to the repository url
dest_dir Local destination directory
progress progress receiver

Reimplemented from zypp::repo::Downloader.

Definition at line 43 of file Downloader.cc.

References _path, _repoindex, zypp::SignatureFileChecker::addPublicKey(), zypp::ui::asString(), zypp::Locale::code(), zypp::Arch::compatibleWith(), consumeIndex(), zypp::MediaSetAccess::doesFileExist(), zypp::repo::downloadMediaInfo(), zypp::str::endsWith(), zypp::Fetcher::enqueue(), zypp::Fetcher::enqueueDigested(), zypp::Locale::fallback(), zypp::str::hasPrefix(), zypp::ZConfig::instance(), MIL, zypp::Locale::noCode, zypp::parser::susetags::ContentFileReader::parse(), zypp::Fetcher::reset(), zypp::OnMediaLocation::setChecksum(), zypp::parser::susetags::ContentFileReader::setRepoIndexConsumer(), zypp::url::split(), zypp::Fetcher::start(), zypp::str::stripPrefix(), zypp::ZConfig::systemArchitecture(), WAR, and ZYPP_THROW.

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

Status of the remote repository

Reimplemented from zypp::repo::Downloader.

Definition at line 35 of file Downloader.cc.

References _path, and zypp::MediaSetAccess::provideFile().

void zypp::repo::susetags::Downloader::consumeIndex ( const parser::susetags::RepoIndex_Ptr &  data_r  ) 

Content file parser consumer.

Referenced by download().


Member Data Documentation

Pathname zypp::repo::susetags::Downloader::_path [private]

Definition at line 64 of file Downloader.h.

Referenced by download(), and status().

parser::susetags::RepoIndex_Ptr zypp::repo::susetags::Downloader::_repoindex [private]

Definition at line 65 of file Downloader.h.

Referenced by download().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:26 2007 for libzypp by  doxygen 1.5.3