ProxyInfoSysconfig.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_MEDIA_PROXYINFO_PROXYINFOSYSCONFIG_H
00013 #define ZYPP_MEDIA_PROXYINFO_PROXYINFOSYSCONFIG_H
00014 
00015 #include <string>
00016 #include <map>
00017 
00018 #include "zypp/media/ProxyInfo.h"
00019 #include "zypp/media/proxyinfo/ProxyInfoImpl.h"
00020 
00021 namespace zypp {
00022   namespace media {
00023 
00024 
00025     class ProxyInfoSysconfig : public ProxyInfo::Impl
00026     {
00027     public:
00028       ProxyInfoSysconfig(const Pathname & path);
00030       bool enabled() const
00031       { return _enabled; }
00033       std::string proxy(const std::string & protocol_r) const;
00035       ProxyInfo::NoProxyList noProxy() const
00036       { return _no_proxy; }
00038       virtual ProxyInfo::NoProxyIterator noProxyBegin() const;
00040       virtual ProxyInfo::NoProxyIterator noProxyEnd() const;
00041     private:
00042       bool _enabled;
00043       ProxyInfo::NoProxyList _no_proxy;
00044       std::map<std::string,std::string> _proxies;
00045     };
00046 
00047     namespace proxyinfo {
00048       std::map<std::string,std::string> sysconfigRead(const Pathname & _path);
00049     } // namespace proxyinfo
00050 
00052 
00053   } // namespace media
00054 } // namespace zypp
00055 
00056 #endif // ZYPP_MEDIA_PROXYINFO_PROXYINFOSYSCONFIG_H

Generated on Mon Jun 5 19:10:33 2006 for zypp by  doxygen 1.4.6