00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00009 00010 #ifndef ZYPP_SOURCE_SUSETAGS_DOWNLOADER 00011 #define ZYPP_SOURCE_SUSETAGS_DOWNLOADER 00012 00013 #include "zypp/Url.h" 00014 #include "zypp/Pathname.h" 00015 #include "zypp/ProgressData.h" 00016 #include "zypp/RepoStatus.h" 00017 #include "zypp/MediaSetAccess.h" 00018 #include "zypp/repo/Downloader.h" 00019 #include "zypp/parser/susetags/ContentFileReader.h" 00020 00021 namespace zypp 00022 { 00023 namespace repo 00024 { 00025 namespace susetags 00026 { 00027 00033 class Downloader : public repo::Downloader 00034 { 00035 public: 00041 Downloader( const Pathname &path ); 00042 00050 void download( MediaSetAccess &media, 00051 const Pathname &dest_dir, 00052 const ProgressData::ReceiverFnc & progress = ProgressData::ReceiverFnc() ); 00056 RepoStatus status( MediaSetAccess &media ); 00057 00061 void consumeIndex( const parser::susetags::RepoIndex_Ptr & data_r ); 00062 00063 private: 00064 Pathname _path; 00065 parser::susetags::RepoIndex_Ptr _repoindex; 00066 }; 00067 00068 } // ns susetags 00069 } // ns source 00070 } // ns zypp 00071 00072 #endif
1.5.3