From a7d5a8f5cdab09490a3c3fd59b39b8ad6df5b75c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 15 May 2024 14:59:08 +0200 Subject: [PATCH] Declaration of getInstalledJsonVersions() with default parameter. --- UpdatePTUDevCtrl/update.h | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/UpdatePTUDevCtrl/update.h b/UpdatePTUDevCtrl/update.h index 3b7db72..b70c02a 100644 --- a/UpdatePTUDevCtrl/update.h +++ b/UpdatePTUDevCtrl/update.h @@ -8,6 +8,7 @@ #include #include #include +#include #include @@ -60,6 +61,47 @@ public: bool doUpdate(int &displayIndex, QStringList const &linesToWorkOn); bool checkDownloadedJsonVersions(QStringList const& jsonFileNames); + QMap + getInstalledJsonVersions(QStringList const& jsonFileNames = + QStringList( + QList( + std::initializer_list{ + QString("etc/psa_config/DC2C_conf.json"), + QString("etc/psa_config/DC2C_cash.json"), + QString("etc/psa_config/DC2C_device.json"), + QString("etc/psa_config/DC2C_print01.json"), + QString("etc/psa_config/DC2C_print02.json"), + QString("etc/psa_config/DC2C_print03.json"), + QString("etc/psa_config/DC2C_print04.json"), + QString("etc/psa_config/DC2C_print05.json"), + QString("etc/psa_config/DC2C_print06.json"), + QString("etc/psa_config/DC2C_print07.json"), + QString("etc/psa_config/DC2C_print08.json"), + QString("etc/psa_config/DC2C_print09.json"), + QString("etc/psa_config/DC2C_print10.json"), + QString("etc/psa_config/DC2C_print11.json"), + QString("etc/psa_config/DC2C_print12.json"), + QString("etc/psa_config/DC2C_print13.json"), + QString("etc/psa_config/DC2C_print14.json"), + QString("etc/psa_config/DC2C_print15.json"), + QString("etc/psa_config/DC2C_print16.json"), + QString("etc/psa_config/DC2C_print17.json"), + QString("etc/psa_config/DC2C_print18.json"), + QString("etc/psa_config/DC2C_print19.json"), + QString("etc/psa_config/DC2C_print20.json"), + QString("etc/psa_config/DC2C_print21.json"), + QString("etc/psa_config/DC2C_print22.json"), + QString("etc/psa_config/DC2C_print23.json"), + QString("etc/psa_config/DC2C_print24.json"), + QString("etc/psa_config/DC2C_print25.json"), + QString("etc/psa_config/DC2C_print26.json"), + QString("etc/psa_config/DC2C_print27.json"), + QString("etc/psa_config/DC2C_print28.json"), + QString("etc/psa_config/DC2C_print29.json"), + QString("etc/psa_config/DC2C_print30.json"), + QString("etc/psa_config/DC2C_print31.json"), + QString("etc/psa_config/DC2C_print32.json")}))); + hwinf *hw() { return m_hw; } hwinf const *hw() const { return m_hw; }