summaryrefslogtreecommitdiffstats
path: root/src/libs/kdtools/updatefinder.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2016-09-20 14:45:24 +0300
committerIikka Eklund <iikka.eklund@qt.io>2016-11-09 07:08:48 +0000
commite7f93217182233383851a25ae21bd950d05b408a (patch)
tree978adb275ec5b3f52a93a610ef5d50d27c6a2479 /src/libs/kdtools/updatefinder.h
parent6e5ef08718b7b638b57dda4ef4a7bdbfe8046743 (diff)
allow installing compressed packages
This change introduces new feature to add 7z packages to be installed. Packages must be installer repositories (created with repogen), compressed to 7z file and named as qtbsp or 7z. Selecting compressed package is done either with button in component selection page or with --installCompressedRepository parameter given to installer or to maintenancetool. Button will not be created by default. If you want to show the button either build IFW with DEFINES+=INSTALLCOMPRESSED or enable the button in control script with allowCompressedRepositoryInstall() in ComponentSelectionPageCallback Task-number: QTIFW-886 Change-Id: Ia060092c348991d5195393b7dc154205f8bf92a5 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/kdtools/updatefinder.h')
-rw-r--r--src/libs/kdtools/updatefinder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/kdtools/updatefinder.h b/src/libs/kdtools/updatefinder.h
index 1fbebdd9a..ed943789f 100644
--- a/src/libs/kdtools/updatefinder.h
+++ b/src/libs/kdtools/updatefinder.h
@@ -58,7 +58,8 @@ public:
void setLocalPackageHub(std::weak_ptr<LocalPackageHub> hub);
void setPackageSources(const QSet<QInstaller::PackageSource> &sources);
-
+ void addCompressedPackage(bool add) { m_compressedPackage = add; }
+ bool isCompressedPackage() { return m_compressedPackage; }
private:
void doRun();
bool doStop();
@@ -66,6 +67,7 @@ private:
bool doResume();
private:
+ bool m_compressedPackage;
Private *d;
Q_PRIVATE_SLOT(d, void slotDownloadDone())
};