From a5dd9af29a42396e430ef97367204d1196b205f8 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 14 May 2024 12:45:43 +0200 Subject: [PATCH] Add System::allowedJsonFiles to name default JSON file names. --- common/src/System.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/common/src/System.cpp b/common/src/System.cpp index b88477e..dc0adfe 100644 --- a/common/src/System.cpp +++ b/common/src/System.cpp @@ -7,10 +7,52 @@ #include #include #include +#include //#include "version.h" + + +const QStringList System::allowedJsonFiles = +std::initializer_list{ + QString("DC2C_conf.json"), + QString("DC2C_cash.json"), + QString("DC2C_device.json"), + QString("DC2C_print01.json"), + QString("DC2C_print02.json"), + QString("DC2C_print03.json"), + QString("DC2C_print04.json"), + QString("DC2C_print05.json"), + QString("DC2C_print06.json"), + QString("DC2C_print07.json"), + QString("DC2C_print08.json"), + QString("DC2C_print09.json"), + QString("DC2C_print10.json"), + QString("DC2C_print11.json"), + QString("DC2C_print12.json"), + QString("DC2C_print13.json"), + QString("DC2C_print14.json"), + QString("DC2C_print15.json"), + QString("DC2C_print16.json"), + QString("DC2C_print17.json"), + QString("DC2C_print18.json"), + QString("DC2C_print19.json"), + QString("DC2C_print20.json"), + QString("DC2C_print21.json"), + QString("DC2C_print22.json"), + QString("DC2C_print23.json"), + QString("DC2C_print24.json"), + QString("DC2C_print25.json"), + QString("DC2C_print26.json"), + QString("DC2C_print27.json"), + QString("DC2C_print28.json"), + QString("DC2C_print29.json"), + QString("DC2C_print30.json"), + QString("DC2C_print31.json"), + QString("DC2C_print32.json") +}; + QString System::errorMsg = ""; System::System(QObject *parent) :