From b45cc0a13a20e88546cd7a536f09979edf8353a1 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 15 Jan 2012 23:20:17 +0100 Subject: 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 --- rbutil/rbutilqt/base/bootloaderinstallbase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/base/bootloaderinstallbase.h') diff --git a/rbutil/rbutilqt/base/bootloaderinstallbase.h b/rbutil/rbutilqt/base/bootloaderinstallbase.h index 8198d54e76..0e970c4af6 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallbase.h +++ b/rbutil/rbutilqt/base/bootloaderinstallbase.h @@ -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) -- cgit v1.2.3