libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_MEDIA_URLRESOLVERPLUGIN_H 00013 #define ZYPP_MEDIA_URLRESOLVERPLUGIN_H 00014 00015 #include <iosfwd> 00016 #include <map> 00017 #include <string> 00018 00019 #include "zypp/base/PtrTypes.h" 00020 #include "zypp/Url.h" 00021 #include "zypp/PathInfo.h" 00022 00024 namespace zypp 00025 { 00026 00027 namespace media 00028 { 00029 00033 class UrlResolverPlugin 00034 { 00035 friend std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj ); 00036 00037 public: 00038 00039 class Impl; 00040 00041 typedef std::multimap<std::string, std::string> HeaderList; 00042 00050 static Url resolveUrl(const Url &url, HeaderList &headers); 00051 00052 public: 00054 ~UrlResolverPlugin(); 00055 00056 private: 00057 00059 UrlResolverPlugin(); 00060 00062 RW_pointer<Impl> _pimpl; 00063 }; 00065 00067 std::ostream & operator<<( std::ostream & str, const UrlResolverPlugin & obj ); 00068 00070 } // namespace media 00073 } // namespace zypp 00075 #endif // ZYPP_MEDIA_URLRESOLVERPLUGIN_H