From 00a491d93733d4625ad329b2ba8237f445364b3f Mon Sep 17 00:00:00 2001 From: Mirta Date: Wed, 30 Dec 2020 16:39:52 +0200 Subject: merge --- .../MachineUpdate/IMachineUpdateManager.cs | 59 ++++------------------ 1 file changed, 11 insertions(+), 48 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs index 7c835165f..85d61d4cc 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs @@ -4,27 +4,12 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.PMR.Synchronization; -using Tango.PPC.Common.Publish; -using Tango.PPC.Common.UpdatePackages; using Tango.PPC.Common.Web; namespace Tango.PPC.Common.MachineUpdate { public interface IMachineUpdateManager { - /// - /// Occurs when an application update is available. - /// - event EventHandler UpdateAvailable; - - /// - /// Gets or sets a value indicating whether to automatically check for new application updates. - /// - bool EnableAutoCheckForUpdates { get; set; } - - /// - /// Gets the current machine update progress status. - /// MachineUpdateProgress Status { get; } /// @@ -38,68 +23,46 @@ namespace Tango.PPC.Common.MachineUpdate event EventHandler Progress; /// - /// Performs a machine update. + /// Performs a machine update using the specified serial number and machine service address. /// + /// The serial number. /// if set to true updates the embedded device firmware. /// if set to true updates the embedded device FPGA version and other parameters. /// - Task Update(bool setupFirmware, bool setupFPGA); + Task Update(String serialNumber, bool setupFirmware, bool setupFPGA); /// /// Performs a machine update using the specified software update package path. /// /// Name of the file. /// - Task UpdateFromTUP(String fileName, bool setupFirmware, bool setupFPGA); - - /// - /// Performs a firmware upgrade from the specified TFP file. - /// - /// Name of the file. - /// - Task UpdateFromTFP(String fileName); + Task UpdateFromTUP(String fileName); /// - /// Checks if any update are available. + /// Checks if any update are available for the specified machine serial number. /// + /// The serial number. /// - Task CheckForUpdate(); + Task CheckForUpdate(String serialNumber); /// /// Checks whether it is necessary to updates all the "overwrite-able" database tables. /// + /// The serial number. /// - Task UpdateDBCheck(); + Task UpdateDBCheck(String serialNumber); /// /// Updates all the "overwrite-able" database tables. /// /// - Task UpdateDB(DbCompareResult dbCompareResult); + Task UpdateDB(DbCompareResult dbCompareResult, String serialNumber); /// /// Gets the update package file information. /// /// The file path. /// - Task GetUpdatePackageFileInfo(String filePath); - - /// - /// Checks whether any post update packages needs to be installed. - /// - /// - Task PostUpdatePackagesRequired(); - - /// - /// Runs all post update packages. - /// - /// - Task RunPostUpdatePackages(); - - /// - /// Restores the last database backup. - /// - /// - Task RestoreLastDatabaseBackup(); + Task GetUpdatePackageFileInfo(String filePath); } } -- cgit v1.3.1