1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp-curl/CurlConfig
11 #ifndef ZYPP_CURL_CURLCONFIG_H_INCLUDED
12 #define ZYPP_CURL_CURLCONFIG_H_INCLUDED
14 //#include <zypp/base/NonCopyable.h>
15 #include <zypp-core/base/String.h>
24 * Structure holding values of curlrc options.
30 * Parse a curlrc file and store the result in the \a config structure.
32 * \param config a CurlConfig structure
33 * \param filename path to the curlrc file. If empty, ~/.curlrc is used.
34 * \return 0 on success, 1 if problem occurs.
36 static int parseConfig(CurlConfig & config, const std::string & filename = "");
39 * Stores the \a value of the \a option in the \a config structure or
40 * logs an unknown option.
42 * \return 0 on success, 1 if problem occurs.
44 static int setParameter(CurlConfig & config,
45 const std::string & option,
46 const std::string & value);
49 std::string proxyuserpwd;
50 // add more curl config data here as they become needed
57 #endif /*ZYPP_CURL_CURLCONFIG_H_INCLUDED*/