add voice file installation. This also extends the ZipInstaller class a bit to handle copying the downloaded file instead of unzipping.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14256 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2007-08-09 16:06:27 +00:00
parent 965881fd85
commit 8dbc7e350b
4 changed files with 101 additions and 31 deletions

View file

@ -41,6 +41,8 @@ public:
void setUrl(QString url){m_url = url;}
void setProxy(QUrl proxy) {m_proxy= proxy;}
void setLogSection(QString name) {m_logsection = name;}
void setUnzip(bool i) { m_unzip = i; }
void setTarget(QString t) { m_target = t; }
signals:
void done(bool error);
@ -50,9 +52,11 @@ private slots:
void downloadDone(bool);
void downloadRequestFinished(int, bool);
private:
private:
QString m_url,m_file,m_mountpoint,m_logsection;
QUrl m_proxy;
bool m_unzip;
QString m_target;
HttpGet *getter;
QTemporaryFile downloadFile;