Support reading OF files from zip.

Several devices require the original firmware to be able installing the
bootloader. Most vendors distribute the firmware file in zip format. Extend
reading the original firmware file to support reading the file from the zip
directly instead of requiring the user to separately extract it.

Change-Id: Ic4e89053456d8f7d6adc294f6657aceddbc354ba
This commit is contained in:
Dominik Riebeling 2012-01-15 23:20:17 +01:00
parent 66c3086ae5
commit b45cc0a13a
5 changed files with 84 additions and 16 deletions

View file

@ -60,8 +60,7 @@ class BootloaderInstallBase : public QObject
{ m_blurl = u; }
void setLogfile(QString f)
{ m_logfile = f; }
void setOfFile(QString f)
{m_offile = f;}
bool setOfFile(QString of, QStringList blfile);
//! returns a port Install Hint or empty if there is none
//! static and in the base class, so the installer classes dont need to
@ -90,6 +89,7 @@ class BootloaderInstallBase : public QObject
QString m_logfile; //! file for installation log
QUrl m_blurl; //! bootloader download URL
QTemporaryFile m_tempfile; //! temporary file for download
QTemporaryFile m_tempof; //! temporary file for OF extracted from archive
QDateTime m_blversion; //! download timestamp used for version information
QString m_offile; //! path to the offile
#if defined(Q_OS_MACX)