libzypp 17.37.10

curlconfig.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
11#ifndef ZYPP_CURL_CURLCONFIG_H_INCLUDED
12#define ZYPP_CURL_CURLCONFIG_H_INCLUDED
13
14//#include <zypp/base/NonCopyable.h>
15#include <zypp-core/base/String.h>
16
17 namespace zypp
18{
19 namespace media
20 {
21
22
26 struct CurlConfig
27 {
28 public:
36 static int parseConfig(CurlConfig & config, const std::string & filename = "");
37
44 static int setParameter(CurlConfig & config,
45 const std::string & option,
46 const std::string & value);
47
48 public:
49 std::string proxyuserpwd;
50 // add more curl config data here as they become needed
51 };
52
53
54 } // namespace media
55} // namespace zypp
56
57#endif /*ZYPP_CURL_CURLCONFIG_H_INCLUDED*/
zypp::media
Definition MediaNetworkRequestExecutor.h:22
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::media::CurlConfig
Structure holding values of curlrc options.
Definition curlconfig.h:27
zypp::media::CurlConfig::proxyuserpwd
std::string proxyuserpwd
Definition curlconfig.h:49
zypp::media::CurlConfig::setParameter
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
zypp::media::CurlConfig::parseConfig
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
String.h