Mercurial > trustbridge
comparison ui/sslconnection_curl.h @ 956:879a634d0a40
(issue41) Add proxy support
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 27 Aug 2014 16:31:40 +0200 |
parents | eaed02defe6a |
children | 6a3d284b9c16 |
comparison
equal
deleted
inserted
replaced
955:0f7aeb12e5e9 | 956:879a634d0a40 |
---|---|
12 * @file sslconnection_curl.h | 12 * @file sslconnection_curl.h |
13 * @brief SSLConnection utilizing libcurl for http. | 13 * @brief SSLConnection utilizing libcurl for http. |
14 */ | 14 */ |
15 | 15 |
16 #include "sslconnection.h" | 16 #include "sslconnection.h" |
17 | |
17 #include <curl/curl.h> | 18 #include <curl/curl.h> |
18 | 19 |
19 #include <QDateTime> | 20 #include <QDateTime> |
20 #include <QTemporaryFile> | 21 #include <QTemporaryFile> |
21 | 22 |
33 | 34 |
34 QDateTime getLastModifiedHeader(const QString &resource); | 35 QDateTime getLastModifiedHeader(const QString &resource); |
35 | 36 |
36 bool downloadFile(const QString &resource, const QString &filename, | 37 bool downloadFile(const QString &resource, const QString &filename, |
37 size_t maxSize); | 38 size_t maxSize); |
39 | |
40 void setProxy(const QUrl &proxyUrl); | |
41 | |
38 private: | 42 private: |
39 CURL *mCurl; | 43 CURL *mCurl; |
40 QTemporaryFile mCertFile; | 44 QTemporaryFile mCertFile; |
41 char mErrBuf[CURL_ERROR_SIZE + 1]; | 45 char mErrBuf[CURL_ERROR_SIZE + 1]; |
42 | 46 |