using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PMR.Synchronization;
using Tango.PPC.Common.Web;
namespace Tango.PPC.Common.MachineUpdate
{
public interface IMachineUpdateManager
{
MachineUpdateProgress Status { get; }
///
/// Occurs when there is a text log message available.
///
event EventHandler ProgressLog;
///
/// Occurs when the update has made some progress.
///
event EventHandler Progress;
///
/// 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(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);
///
/// Checks if any update are available for the specified machine serial number.
///
/// The serial number.
///
Task CheckForUpdate(String serialNumber);
///
/// Checks whether it is necessary to updates all the "overwrite-able" database tables.
///
/// The serial number.
///
Task UpdateDBCheck(String serialNumber);
///
/// Updates all the "overwrite-able" database tables.
///
///
Task UpdateDB(DbCompareResult dbCompareResult, String serialNumber);
///
/// Gets the update package file information.
///
/// The file path.
///
Task GetUpdatePackageFileInfo(String filePath);
}
}