libzypp: zypp-curl/curlconfig.h Source File

libzypp 17.38.11

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-core/base/NonCopyable.h>
15#include <zypp-core/base/String.h>
16
17namespace 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*/
String.h
zypp::media
Definition MediaNetworkRequestExecutor.h:22
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
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