From 1d96325b1cb18108612ee4e3740b89efc4c19949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 3 Oct 2012 10:17:49 +0000 Subject: [PATCH] expose proxy search function; refs #36 --- src/proxyface/proxy.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/proxyface/proxy.hxx b/src/proxyface/proxy.hxx index 8795c1a..9bbcb12 100644 --- a/src/proxyface/proxy.hxx +++ b/src/proxyface/proxy.hxx @@ -86,6 +86,11 @@ namespace gui { acceptValues(); } + void proxy(const QString& url, + int timeout1=5000, int timeout2=30000) { + _auto.proxy(url.toStdString(), timeout1, timeout2); + } + void ping() { _auto.ping(_testUrl->currentText()); }