From fb573630b8798eb743f27fab9ecc854055adb12a Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 9 Jun 2008 20:43:59 +0000 Subject: Simplify progress emit in httpget class a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17706 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/httpget.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'rbutil/rbutilqt/httpget.cpp') diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp index f4e2e04685..b349a2f4be 100644 --- a/rbutil/rbutilqt/httpget.cpp +++ b/rbutil/rbutilqt/httpget.cpp @@ -34,6 +34,7 @@ HttpGet::HttpGet(QObject *parent) m_cached = false; m_dumbCache = m_globalDumbCache; getRequest = -1; + headRequest = -1; // if a request is cancelled before a reponse is available return some // hint about this in the http response instead of nonsense. m_response = -1; @@ -49,7 +50,7 @@ HttpGet::HttpGet(QObject *parent) m_serverTimestamp = QDateTime(); connect(&http, SIGNAL(done(bool)), this, SLOT(httpDone(bool))); - connect(&http, SIGNAL(dataReadProgress(int, int)), this, SLOT(httpProgress(int, int))); + connect(&http, SIGNAL(dataReadProgress(int, int)), this, SIGNAL(dataReadProgress(int, int))); connect(&http, SIGNAL(requestFinished(int, bool)), this, SLOT(httpFinished(int, bool))); connect(&http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader&)), this, SLOT(httpResponseHeader(const QHttpResponseHeader&))); connect(&http, SIGNAL(stateChanged(int)), this, SLOT(httpState(int))); @@ -122,12 +123,6 @@ QHttp::Error HttpGet::error() } -void HttpGet::httpProgress(int read, int total) -{ - emit dataReadProgress(read, total); -} - - void HttpGet::setProxy(const QUrl &proxy) { qDebug() << "[HTTP]" << __func__ << "(QUrl)" << proxy.toString(); -- cgit v1.2.3