libzypp 17.37.17
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-core/Globals.h>
20#include <zypp/base/PtrTypes.h>
21#include <zypp/Url.h>
22#include <zypp/PathInfo.h>
24namespace zypp
25{
27 namespace media
28 {
29
30 // openSUSE/libzypp#560: Keep it public while foreign test depend on it.
32 {
33 friend std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj );
34
35 public:
36
37 struct Impl;
38
39 using HeaderList = std::multimap<std::string, std::string>;
40
48 static Url resolveUrl(const Url &url, HeaderList &headers);
49
50 public:
53
54 private:
55
58
61 };
62
63
65 std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj );
66
68 } // namespace media
71} // namespace zypp
73#endif // ZYPP_MEDIA_URLRESOLVERPLUGIN_H
std::ostream & operator<<(std::ostream &str, const zypp::sat::detail::CDataiterator *obj)
Url manipulation class.
Definition Url.h:93
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 ...
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const MediaHandler &obj)
Url details namespace.
Definition UrlBase.cc:58
Easy-to use interface to the ZYPP dependency resolver.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
Wrapper for const correct access via Smart pointer types.
Definition PtrTypes.h:293
UrlResolverPlugin implementation.
Provides API related macros.