libzypp  11.13.5
RepoMirrorList.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
10 #ifndef ZYPP_REPO_MIRRORLIST_H_
11 #define ZYPP_REPO_MIRRORLIST_H_
12 
13 #include <vector>
14 #include "zypp/Url.h"
15 #include "zypp/Pathname.h"
16 
17 namespace zypp
18 {
19  namespace repo
20  {
22  {
23  public:
24  RepoMirrorList( const Url &url );
25  RepoMirrorList( const Url &url, const Pathname &metadatapath );
26  virtual ~RepoMirrorList();
27 
28  std::vector<Url> getUrls() const;
29 
30  private:
31  std::vector<Url> urls;
32  void setUrls( std::vector<Url> my_urls );
33  std::vector<Url> parseXML( const Pathname &tmpfile ) const;
34  std::vector<Url> parseTXT( const Pathname &tmpfile ) const;
35  };
36 
37  } // ns repo
38 } // ns zypp
39 
40 #endif
41 
42 // vim: set ts=2 sts=2 sw=2 et ai: