libzypp  17.28.8
UrlResolverPlugin.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_MEDIA_URLRESOLVERPLUGIN_H
13 #define ZYPP_MEDIA_URLRESOLVERPLUGIN_H
14 
15 #include <iosfwd>
16 #include <map>
17 #include <string>
18 
19 #include <zypp/base/PtrTypes.h>
20 #include <zypp/Url.h>
21 #include <zypp/PathInfo.h>
22 
24 namespace zypp
25 {
27  namespace media
28  {
29 
34  {
35  friend std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj );
36 
37  public:
38 
39  struct Impl;
40 
41  typedef std::multimap<std::string, std::string> HeaderList;
42 
50  static Url resolveUrl(const Url &url, HeaderList &headers);
51 
52  public:
55 
56  private:
57 
60 
63  };
65 
67  std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj );
68 
70  } // namespace media
73 } // namespace zypp
75 #endif // ZYPP_MEDIA_URLRESOLVERPLUGIN_H
Url manipulation class.
Definition: Url.h:92
RW_pointer< Impl > _pimpl
Pointer to implementation.
std::multimap< std::string, std::string > HeaderList
static Url resolveUrl(const Url &url, HeaderList &headers)
Resolves an url using the installed plugins If no plugin is found the url is resolved as its current ...
friend std::ostream & operator<<(std::ostream &str, const UrlResolverPlugin &obj)
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const MediaBlockList &bl)
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
UrlResolverPlugin implementation.