libzypp  15.28.6
CurlConfig.h
Go to the documentation of this file.
1 #ifndef ZYPP_MEDIA_CURLRCONFIG_H_
2 #define ZYPP_MEDIA_CURLRCONFIG_H_
3 
4 //#include "zypp/base/NonCopyable.h"
5 #include "zypp/base/String.h"
6 
7 namespace zypp
8 {
9  namespace media
10  {
11 
12 
16  struct CurlConfig
17  {
18  public:
26  static int parseConfig(CurlConfig & config, const std::string & filename = "");
27 
34  static int setParameter(CurlConfig & config,
35  const std::string & option,
36  const std::string & value);
37 
38  public:
39  std::string proxyuserpwd;
40  // add more curl config data here as they become needed
41  };
42 
43 
44  } // namespace media
45 } // namespace zypp
46 
47 #endif /*ZYPP_MEDIA_CURLRCONFIG_H_*/
Structure holding values of curlrc options.
Definition: CurlConfig.h:16
static int parseConfig(CurlConfig &config, const std::string &filename="")
Parse a curlrc file and store the result in the config structure.
Definition: CurlConfig.cc:24
static int setParameter(CurlConfig &config, const std::string &option, const std::string &value)
Stores the value of the option in the config structure or logs an unknown option. ...
Definition: CurlConfig.cc:169
std::string proxyuserpwd
Definition: CurlConfig.h:39