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) :