From 37e5138e6acac4a9b93e018087fe9c50d36c4b34 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 30 Aug 2018 19:04:18 +0300 Subject: Implemented machine update on PPC !!! Need to verify update scripts... --- .../MachineUpdate/IMachineUpdateManager.cs | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs (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 new file mode 100644 index 000000000..fd565b84a --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.PMR.Synchronization; + +namespace Tango.PPC.Common.MachineUpdate +{ + public interface IMachineUpdateManager + { + /// + /// Gets the current setup step. + /// + MachineUpdateSteps CurrentStep { get; } + + /// + /// Occurs when there is a text log message available. + /// + event EventHandler ProgressLog; + + /// + /// Gets the downloading packages step progress. + /// + double DownloadingPackagesProgress { get; } + + /// + /// Gets the downloading packages step status. + /// + String DownloadingPackagesStatus { get; } + + /// + /// Occurs when the has changed. + /// + event EventHandler ProgressStep; + + /// + /// Performs a machine update using the specified serial number and machine service address. + /// + /// The serial number. + /// The machine service address. + /// + Task Update(String serialNumber, String machineServiceAddress); + + /// + /// Checks if any update are available for the specified machine serial number. + /// + /// The serial number. + /// The machine service address. + /// + Task CheckForUpdate(String serialNumber, String machineServiceAddress); + } +} -- cgit v1.3.1