libzypp  10.5.0
RepoMirrorList.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
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   } // ns repo
00038 } // ns zypp
00039 
00040 #endif
00041 
00042 // vim: set ts=2 sts=2 sw=2 et ai: