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); /// /// Checks whether it is necessary to updates all the "overwrite-able" database tables. /// /// The serial number. /// The machine service address. /// Task UpdateDBCheck(String serialNumber, String machineServiceAddress); /// /// Updates all the "overwrite-able" database tables. /// /// Task UpdateDB(DbCompareResult dbCompareResult); } }