RepoMirrorList.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ZYPP_REPO_MIRRORLIST_H_
00011 #define ZYPP_REPO_MIRRORLIST_H_
00012
00013 #include <vector>
00014 #include "zypp/Url.h"
00015 #include "zypp/Pathname.h"
00016
00017 namespace zypp
00018 {
00019 namespace repo
00020 {
00021 class RepoMirrorList
00022 {
00023 public:
00024 RepoMirrorList( const Url &url );
00025 RepoMirrorList( const Url &url, const Pathname &metadatapath );
00026 virtual ~RepoMirrorList();
00027
00028 std::vector<Url> getUrls() const;
00029
00030 private:
00031 std::vector<Url> urls;
00032 void setUrls( std::vector<Url> my_urls );
00033 std::vector<Url> parseXML( const Pathname &tmpfile ) const;
00034 std::vector<Url> parseTXT( const Pathname &tmpfile ) const;
00035 };
00036
00037 }
00038 }
00039
00040 #endif
00041
00042