diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-03-05 21:12:24 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-03-05 21:12:24 +0000 |
commit | 5a75184c4abfd2c8fa2a3ee705b94fc800d7b918 (patch) | |
tree | dcbb9529aafc259fd8922b471c8ff537bb48a8fe /rbutil/rbutilqt/installzip.h | |
parent | 0def1dd23cf1990536122d35ed040173ddaa06ba (diff) | |
download | rockbox-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.h')
-rw-r--r-- | rbutil/rbutilqt/installzip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/installzip.h b/rbutil/rbutilqt/installzip.h index 906fc21013..ece5d88072 100644 --- a/rbutil/rbutilqt/installzip.h +++ b/rbutil/rbutilqt/installzip.h @@ -39,7 +39,6 @@ public: void setMountPoint(QString mountpoint) {m_mountpoint = mountpoint;} void setUrl(QString url){m_urllist = QStringList(url);} void setUrl(QStringList url) { m_urllist = url; } - void setProxy(QUrl proxy) {m_proxy= proxy;} void setLogSection(QString name) {m_loglist = QStringList(name);} void setLogSection(QStringList name) { m_loglist = name; } void setLogVersion(QString v) { m_verlist = QStringList(v); qDebug() << m_verlist;} @@ -47,6 +46,7 @@ public: void setUnzip(bool i) { m_unzip = i; } void setTarget(QString t) { m_target = t; } void setCache(QDir c) { m_cache = c; }; + void setCache(bool c) { m_usecache = c; }; void setCache(QString c) { m_cache = QDir(c);} signals: @@ -63,11 +63,11 @@ private: void installSingle(ProgressloggerInterface *dp); QString m_url, m_file, m_mountpoint, m_logsection, m_logver; QStringList m_urllist, m_loglist, m_verlist; - QUrl m_proxy; bool m_unzip; QString m_target; int runner; QDir m_cache; + bool m_usecache; HttpGet *getter; QTemporaryFile *downloadFile; |