Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / repo / RepoMirrorList.h
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   {
21     class RepoMirrorList
22     {
23       public:
24         RepoMirrorList( const Url & url_r, const Pathname & metadatapath_r, bool mirrorListForceMetalink_r );
25
26         RepoMirrorList( const Url & url_r )
27         : RepoMirrorList( url_r, Pathname(), false )
28         {}
29
30         const std::vector<Url> & getUrls() const
31         { return _urls; }
32
33         std::vector<Url> & getUrls()
34         { return _urls; }
35
36       private:
37         std::vector<Url> _urls;
38     };
39   } // ns repo
40 } // ns zypp
41
42 #endif
43
44 // vim: set ts=2 sts=2 sw=2 et ai: