Index: sources/storage/Settings.h =================================================================== diff -u -r389f028cb9d4d320eae393de7c4408a58a619356 -rd8c73c14f41d548e3ffecdb6948e6b7bb54523f2 --- sources/storage/Settings.h (.../Settings.h) (revision 389f028cb9d4d320eae393de7c4408a58a619356) +++ sources/storage/Settings.h (.../Settings.h) (revision d8c73c14f41d548e3ffecdb6948e6b7bb54523f2) @@ -7,7 +7,7 @@ * * \file Settings.h * \author (last) Behrouz NematiPour - * \date (last) 04-Oct-2022 + * \date (last) 18-Jul-2023 * \author (original) Behrouz NematiPour * \date (original) 29-Mar-2021 * @@ -62,22 +62,22 @@ eError_Write , eError_Copy , eError_Remove , - eError_No_SettingFolder , - eError_No_SettingFile , - eError_SettingNotExits , + eError_No_SettingsFolder , + eError_No_SettingsFile , + eError_SettingNotExists , }; private: - const QHash settingsError_Message { // no translation for the error. My experience shows the error messages if trasnlated is not useful for serviceability and debugging. + const QHash settingsError_Message { // no translation for the error. My experience shows the error messages if translated is not useful for serviceability and debugging. { eError_None , "" }, { eError_POST , "The configuration source check failed." }, { eError_PathEmpty , "The settings path is empty." }, { eError_MkDir , "The configuration folder '%1' cannot be created." }, { eError_Write , "The settings file %1 can't be written." }, { eError_Copy , "The configuration folder '%1' cannot be copied." }, { eError_Remove , "The configuration folder '%1' cannot be removed." }, - { eError_No_SettingFolder , "No setting folder in the %1 path found." }, - { eError_No_SettingFile , "No setting files in the %1 folder found." }, - { eError_SettingNotExits , "The setting file %1 doesn't exists." }, + { eError_No_SettingsFolder , "No settings folder in the %1 path found." }, + { eError_No_SettingsFile , "No settings file in the %1 folder found." }, + { eError_SettingNotExists , "The setting file %1 doesn't exists." }, }; public: const QString errorMessage(int vErr, QString vArg1 = "", QString vArg2 = "") { @@ -128,7 +128,7 @@ int read (); int save (const QString &vCategory, const QString &vGroup, const QString &vKey, const QString &vValue); - int configurationsMove ( QString *vMessage = nullptr); + int configurationsMove (QString *vMessage = nullptr, bool vIsUpdate = false); int configurationsPOST (Location_Enum vLoc = Location_Enum::eSecured) { Q_UNUSED(vLoc); return true; } static QString category(Category_Enum vCategory) {