1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
10 #ifndef ZYPP_SOURCE_SUSETAGS_DOWNLOADER
11 #define ZYPP_SOURCE_SUSETAGS_DOWNLOADER
14 #include "zypp/Pathname.h"
15 #include "zypp/ProgressData.h"
16 #include "zypp/RepoStatus.h"
17 #include "zypp/MediaSetAccess.h"
18 #include "zypp/repo/Downloader.h"
28 * \short Downloader for SUSETags (YaST2) repositories
29 * Encapsulates all the knowledge of which files have
30 * to be downloaded to the local disk.
32 class Downloader : public repo::Downloader
38 * \param path Path to the repostory from the media
40 Downloader( const Pathname &path );
43 * \short Download metadata to a local directory
45 * \param media Media access to the repository url
46 * \param dest_dir Local destination directory
47 * \param progress progress receiver
49 void download( MediaSetAccess &media,
50 const Pathname &dest_dir,
51 const ProgressData::ReceiverFnc & progress = ProgressData::ReceiverFnc() );
53 * \short Status of the remote repository
55 RepoStatus status( MediaSetAccess &media );