|
|
|
@ -107,7 +107,8 @@ namespace proxy { |
|
|
|
|
|
|
|
|
|
@param url the url to find a proxy for |
|
|
|
|
@param timeout [ms] time to give up search */ |
|
|
|
|
void proxy(const std::string& url, int timeout1=1000, int timeout2=9000) { |
|
|
|
|
void proxy(const std::string& url, |
|
|
|
|
int timeout1=1000, int timeout2=30000) { |
|
|
|
|
qDebug()<<"Search proxy for URL, direct and default" |
|
|
|
|
<<"url="<<url.data()<<"timeout1="<<timeout1; |
|
|
|
|
for (Requests::iterator it(_requests.begin()); |
|
|
|
@ -127,12 +128,12 @@ namespace proxy { |
|
|
|
|
} |
|
|
|
|
//! If Qt Network is available you may check the proxies found
|
|
|
|
|
/*! @copydoc proxy(const std::string&, int) */ |
|
|
|
|
void proxy(const QUrl& url, int timeout1=1000, int timeout2=9000) { |
|
|
|
|
void proxy(const QUrl& url, int timeout1=1000, int timeout2=30000) { |
|
|
|
|
proxy(url.toString().toStdString(), timeout1, timeout2); |
|
|
|
|
} |
|
|
|
|
//! If Qt Network is available you may check the proxies found
|
|
|
|
|
/*! @copydoc proxy(const std::string&, int) */ |
|
|
|
|
void proxy(const QString& url, int timeout1=1000, int timeout2=9000) { |
|
|
|
|
void proxy(const QString& url, int timeout1=1000, int timeout2=30000) { |
|
|
|
|
proxy(url.toStdString(), timeout1, timeout2); |
|
|
|
|
} |
|
|
|
|
static QString toString(const QNetworkProxy& p) { |
|
|
|
|