mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Implement download caching. Set the folder for the cache data in the configuration dialog. Caching is disabled per default and defaults to the systems temp folder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14476 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0877a1a9f5
commit
5ef236869f
12 changed files with 206 additions and 19 deletions
|
|
@ -46,6 +46,8 @@ public:
|
|||
void setLogVersion(QStringList v) { m_verlist = v; qDebug() << m_verlist;}
|
||||
void setUnzip(bool i) { m_unzip = i; }
|
||||
void setTarget(QString t) { m_target = t; }
|
||||
void setCache(QDir c) { m_cache = c; };
|
||||
void setCache(QString c) { m_cache = QDir(c); qDebug() << "!!!set cache:" << m_cache;}
|
||||
|
||||
signals:
|
||||
void done(bool error);
|
||||
|
|
@ -66,6 +68,7 @@ private:
|
|||
bool m_unzip;
|
||||
QString m_target;
|
||||
int runner;
|
||||
QDir m_cache;
|
||||
|
||||
HttpGet *getter;
|
||||
QTemporaryFile *downloadFile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue