summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/installzip.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-03-05 21:12:24 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-03-05 21:12:24 +0000
commit5a75184c4abfd2c8fa2a3ee705b94fc800d7b918 (patch)
treedcbb9529aafc259fd8922b471c8ff537bb48a8fe /rbutil/rbutilqt/installzip.cpp
parent0def1dd23cf1990536122d35ed040173ddaa06ba (diff)
downloadrockbox-5a75184c4abfd2c8fa2a3ee705b94fc800d7b918.tar.gz
rockbox-5a75184c4abfd2c8fa2a3ee705b94fc800d7b918.zip
add global proxy / cache settings to httpget class. This removes the need of passing proxy / cache values around all the time. Each object can still override the global values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16530 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/installzip.cpp')
-rw-r--r--rbutil/rbutilqt/installzip.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/installzip.cpp b/rbutil/rbutilqt/installzip.cpp
index 641b057175..3948e7ea75 100644
--- a/rbutil/rbutilqt/installzip.cpp
+++ b/rbutil/rbutilqt/installzip.cpp
@@ -25,7 +25,7 @@
25ZipInstaller::ZipInstaller(QObject* parent): QObject(parent) 25ZipInstaller::ZipInstaller(QObject* parent): QObject(parent)
26{ 26{
27 m_unzip = true; 27 m_unzip = true;
28 m_cache = ""; 28 m_usecache = false;
29} 29}
30 30
31 31
@@ -86,10 +86,8 @@ void ZipInstaller::installStart()
86 downloadFile->close(); 86 downloadFile->close();
87 // get the real file. 87 // get the real file.
88 getter = new HttpGet(this); 88 getter = new HttpGet(this);
89 getter->setProxy(m_proxy); 89 if(m_usecache) {
90 if(m_cache.exists()) { 90 getter->setCache(true);
91 getter->setCache(m_cache);
92
93 } 91 }
94 getter->setFile(downloadFile); 92 getter->setFile(downloadFile);
95 getter->getFile(QUrl(m_url)); 93 getter->getFile(QUrl(m_url));