using System; using Xylem.Common.CommonCore.Consts; namespace Xylem.ServiceFwUpdate.Common.FwUpdateConfig.Consts { /// /// Configuration of FW-Update specific settings. /// [Serializable] public static class FwUpdateConfig { /// /// Standard days for user validation for FW-Update SW on registration with FW-Update Loader. /// public const UInt32 ValidDays = 21; /// /// Search strings for "Firmware up to date!" messages in report file, copied from Resources.resx of all /// language packages from "ServiceFwUpdateSw" /// public static readonly String[] FirmwareUpToDateSearchStrings = { "Firmware is up to date!", "Firmware ist aktuell!" }; /// /// Name of settings file being able to restores settings on crashed update procedure on next login. /// public const String RestoreSettingsFileName = "RestoreSettings.json"; /// /// Name of the file which contains the meter file names that can be erased before the FW-Update /// to free disk space and have to be restored after the FW-Update /// public const String MeterFwUpdateRulerConfigFileName = "MeterFwUpdateRuler.json"; /// /// Name of the file which contains the meter file names that can be erased before the FW-Update /// to free disk space and have to be restored after the FW-Update /// public const String MeterFilesEraseRestoreConfigFileName = "MeterFilesEraseRestore.json"; /// /// Path for FW-Update report files which are not uploaded to the Xylem DB. /// The FW-Update SW stores all files needed to report, the FW-Update Loader will load, report, backup /// and erase it from this location. /// public const String UnreportedPath = ProgramConfig.BaseLoggingPath + "FwUpdateUnreported\\"; /// /// Path for FW-Update report files which are already uploaded to the Xylem DB. /// At this location all reported files will be backup by the FW-Update Loader . /// public const String ReportedPath = ProgramConfig.BaseLoggingPath + "FwUpdateReported\\"; /// /// Name of local user registration file . /// public const String UserRegistrationFileName = "UserInformation.register"; /// /// FW-Update safe default location. /// public const String DefaultFwUpdateSafePath = "Downloads\\FwUpdateSafe\\"; /// /// FW-Update safe default location. /// public const String DefaultFwUpdateSwSourcePath = "Downloads\\ServiceFwUpdateSw\\"; /// /// Path for FW-Update for a backup of information of already downloaded FW-Update Safes. This will be /// used by the FW-Update Loader to exclude already downloaded safes. /// public const String FwUpdateSafeInfoBackupPath = "Downloads\\FwUpdateSafesDownloded\\"; /// /// Extension for app version files, needed by FW-Update SW to build and FW-Update Loader to read and upload. /// public const String AppVersionFileExtension = ".applist"; /// /// Extension for backup name of loaded safes needed by the FW-Update Loader to exclude these from download. /// public const String LoadedSafesBackupFileExtension = ".exclude"; /// /// Extension for report files, needed by FW-Update SW to build and FW-Update Loader to read and upload. /// public const String ReportFileExtension = ".report"; /// /// Extension for report files, needed by FW-Update SW to build and FW-Update Loader to read and upload. /// public const String FwUpdateFileExtension = ".safe"; /// /// Library-subfolder: For releases the files are sorted to subfolders to avoid confusion of the user. /// public const String LibrarySubFolderName = "Library"; /// /// Library-subfolder: For releases the files are sorted to subfolders to avoid confusion of the user. /// public const String ConfigSubFolderName = "Config"; /// /// Separator in file name between PcbId CustomerName and OrderNumber for the FW-Update Safe and all report /// files. /// public const Char FwUpdateFileFieldSeparator = '_'; /// /// Separator in file name between OrderNumber and position for the FW-Update Safe and all report /// files. /// public const Char FwUpdateFileOrderPosSeparator = '-'; } }