Last-Modified: Fri, 17 Jul 2026 07:46:43 GMT Expires: Mon, 14 Jul 2036 07:46:43 GMT Project « Tango.MachineStudio.Technician « Modules « MachineStudio « Visual_Studio « Software - Tango - Twine softwares
aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Project
ModeNameSize
-rw-r--r--MachineTechViewProject.cs1104logstatsplain
-rw-r--r--MachineTechViewProjectTab.cs473logstatsplain
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
    {
        MachineUpdateProgress Status { get; }

        /// <summary>
        /// Occurs when there is a text log message available.
        /// </summary>
        event EventHandler<String> ProgressLog;

        /// <summary>
        /// Occurs when the update has made some progress.
        /// </summary>
        event EventHandler<MachineUpdateProgress> Progress;

        /// <summary>
        /// Performs a machine update using the specified serial number and machine service address.
        /// </summary>
        /// <param name="serialNumber">The serial number.</param>
        /// <param name="machineServiceAddress">The machine service address.</param>
        /// <returns></returns>
        Task<MachineUpdateResult> Update(String serialNumber, String machineServiceAddress);

        /// <summary>
        /// Performs a machine update using the specified software update package path.
        /// </summary>
        /// <param name="fileName">Name of the file.</param>
        /// <returns></returns>
        Task<MachineUpdateResult> Update(String fileName);

        /// <summary>
        /// Checks if any update are available for the specified machine serial number.
        /// </summary>
        /// <param name="serialNumber">The serial number.</param>
        /// <param name="machineServiceAddress">The machine service address.</param>
        /// <returns></returns>
        Task<CheckForUpdateResponse> CheckForUpdate(String serialNumber, String machineServiceAddress);

        /// <summary>
        /// Checks whether it is necessary to updates all the "overwrite-able" database tables.
        /// </summary>
        /// <param name="serialNumber">The serial number.</param>
        /// <param name="machineServiceAddress">The machine service address.</param>
        /// <returns></returns>
        Task<DbCompareResult> UpdateDBCheck(String serialNumber, String machineServiceAddress);

        /// <summary>
        /// Updates all the "overwrite-able" database tables.
        /// </summary>
        /// <returns></returns>
        Task UpdateDB(DbCompareResult dbCompareResult);

        /// <summary>
        /// Gets the update package file information.
        /// </summary>
        /// <param name="filePath">The file path.</param>
        /// <returns></returns>
        Task<UpdatePackageFile> GetUpdatePackageFileInfo(String filePath);
    }
}