summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/installthemes.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/installthemes.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/installthemes.cpp')
-rw-r--r--rbutil/rbutilqt/installthemes.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/rbutil/rbutilqt/installthemes.cpp b/rbutil/rbutilqt/installthemes.cpp
index dac7710713..37e2d9ebd7 100644
--- a/rbutil/rbutilqt/installthemes.cpp
+++ b/rbutil/rbutilqt/installthemes.cpp
@@ -65,9 +65,8 @@ void ThemesInstallWindow::downloadInfo()
url = QUrl(settings->themeUrl() + "/rbutilqt.php?res=" + resolution());
qDebug() << "downloadInfo()" << url;
qDebug() << url.queryItems();
- getter->setProxy(proxy);
if(settings->cacheOffline())
- getter->setCache(settings->cachePath());
+ getter->setCache(true);
getter->setFile(&themesInfo);
getter->getFile(url);
}
@@ -172,9 +171,8 @@ void ThemesInstallWindow::updateDetails(int row)
iniDetails.endGroup();
igetter.abort();
- igetter.setProxy(proxy);
if(!settings->cacheDisabled())
- igetter.setCache(settings->cachePath());
+ igetter.setCache(true);
else
{
if(infocachedir=="")
@@ -248,13 +246,6 @@ void ThemesInstallWindow::abort()
}
-void ThemesInstallWindow::setProxy(QUrl p)
-{
- proxy = p;
- qDebug() << "setProxy()" << proxy;
-}
-
-
void ThemesInstallWindow::acceptAll()
{
ui.listThemes->selectAll();
@@ -299,12 +290,11 @@ void ThemesInstallWindow::accept()
installer = new ZipInstaller(this);
installer->setUrl(themes);
- installer->setProxy(proxy);
installer->setLogSection(names);
installer->setLogVersion(version);
installer->setMountPoint(mountPoint);
if(!settings->cacheDisabled())
- installer->setCache(settings->cachePath());
+ installer->setCache(true);
installer->install(logger);
connect(logger, SIGNAL(closed()), this, SLOT(close()));
}