Index: sources/main.h =================================================================== diff -u -rcf61c7736f11f4b75a4e2df803f29bdc7769db53 -rc30ee08fbc73ee5fcd54a7bf0e996eb6a067b7a7 --- sources/main.h (.../main.h) (revision cf61c7736f11f4b75a4e2df803f29bdc7769db53) +++ sources/main.h (.../main.h) (revision c30ee08fbc73ee5fcd54a7bf0e996eb6a067b7a7) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file main.h - * \author (last) Vy - * \date (last) 24-Mar-2023 + * \author (last) Behrouz NematiPour + * \date (last) 18-Jul-2023 * \author (original) Behrouz NematiPour * \date (original) 28-Oct-2019 * @@ -91,16 +91,19 @@ extern bool gDisableSDCFailLogStop ; extern bool gDisableCloudSyncFailStop ; -extern bool gEnableCheckInLog ; -extern bool gEnableAcknowLog ; +extern bool gDisableCheckInLog ; +extern bool gDisableAcknowLog ; extern bool gConsoleoutLogs ; extern bool gConsoleoutFrameInterface ; extern bool gConsoleoutCanInterface ; extern bool gEnableDryDemo ; extern QString gActiveCANBus ; +extern bool gEnableManufacturing ; +extern bool gUseRootHome ; + //--------------------------------------------------------------------------------// //--------------------------------------------------------------------------------// #define SKIPPER_DEF(X) \ @@ -122,6 +125,14 @@ if ( !ok ) LOG_DEBUG("incorrect configuration value for " #vVARIABLE); \ } //--------------------------------------------------------------------------------// +#define FROMVARIANT_WITHRETURN(vVARIABLE, vGROUP, vKEY, vCONVERSION, vOVERALL_OK) \ +{ \ + bool ok = false; \ + vVARIABLE( _Settings.value(mCategory, vGROUP, vKEY).to##vCONVERSION(&ok) ); \ + if ( !ok ) LOG_DEBUG("incorrect configuration value for " #vVARIABLE); \ + vOVERALL_OK = vOVERALL_OK && ok; \ +} +//--------------------------------------------------------------------------------// #define PROPERTY_SLOT( vTYPE , vVARIABLE ) \ protected : \ /*! \brief Property setter