libzypp  11.13.5
zypp::repo::susetags::Downloader Class Reference

Downloader for SUSETags (YaST2) 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::susetags::Downloader:

List of all members.

Public Member Functions

 Downloader (const RepoInfo &info, const Pathname &delta_dir=Pathname())
 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.
void consumeIndex (const parser::susetags::RepoIndex_Ptr &data_r)
 Content file parser consumer.
- Public Member Functions inherited from zypp::repo::Downloader
 Downloader ()
 Constructor.
 Downloader (const RepoInfo &info)
 C-tor associating the downloader with a RepoInfo.
virtual ~Downloader ()
const RepoInforepoInfo () const
- Public Member Functions inherited from zypp::Fetcher
 ZYPP_DECLARE_FLAGS (Options, Option)
 Fetcher ()
 Default ctor.
virtual ~Fetcher ()
 Dtor.
void setOptions (Options options)
 Set the Fetcher options.
Options options () const
 Get current options.
void addIndex (const OnMediaLocation &resource)
 Adds an index containing metadata (for example checksums ) that will be retrieved and read before the job processing starts.
void enqueue (const OnMediaLocation &resource, const FileChecker &checker=FileChecker())
 Enqueue a object for transferal, they will not be transfered until start() is called.
void enqueueDigested (const OnMediaLocation &resource, const FileChecker &checker=FileChecker(), const Pathname &deltafile=Pathname())
 Enqueue a object for transferal, they will not be transfered until start() is called.
void enqueueDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker())
 Enqueue a directory.
void enqueueDigestedDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker())
 Enqueue a directory and always check for checksums.
void addCachePath (const Pathname &cache_dir)
 adds a directory to the list of directories where to look for cached files
void reset ()
 Reset the transfer (jobs) list.
void start (const Pathname &dest_dir, MediaSetAccess &media, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
 start the transfer to a destination directory dest_dir You have to provde a media set access media to get the files from The file tree will be replicated inside this directory

Private Attributes

parser::susetags::RepoIndex_Ptr _repoindex
Pathname _delta_dir

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 34 of file Downloader.h.


Constructor & Destructor Documentation

zypp::repo::susetags::Downloader::Downloader ( const RepoInfo info,
const Pathname &  delta_dir = Pathname() 
)

Constructor from the repository information.

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

Parameters:
infoRepository information

Definition at line 31 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:
mediaMedia access to the repository url
dest_dirLocal destination directory
progressprogress receiver

Reimplemented from zypp::repo::Downloader.

Definition at line 55 of file Downloader.cc.

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

Status of the remote repository.

Reimplemented from zypp::repo::Downloader.

Definition at line 36 of file Downloader.cc.

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

Content file parser consumer.

Definition at line 246 of file Downloader.cc.


Member Data Documentation

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

Definition at line 68 of file Downloader.h.

Pathname zypp::repo::susetags::Downloader::_delta_dir
private

Definition at line 69 of file Downloader.h.


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