aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-08-30 19:38:41 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-08-30 19:38:41 +0300
commitdd6bc91bb43b70fcae954834cd03c6028f3eefa5 (patch)
tree08710978223e7bc2eedae6c7515a241e6b1c64a8 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs
parent5c9bca9cb0bbbb1c448228ef5ac5f898f17e9827 (diff)
parenta4a0d4973c8eff2bbfe2c8e753f30626c9e9076d (diff)
downloadTango-dd6bc91bb43b70fcae954834cd03c6028f3eefa5.tar.gz
Tango-dd6bc91bb43b70fcae954834cd03c6028f3eefa5.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/IMachineUpdateManager.cs53
1 files changed, 53 insertions, 0 deletions
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
+ {
+ /// <summary>
+ /// Gets the current setup step.
+ /// </summary>
+ MachineUpdateSteps CurrentStep { get; }
+
+ /// <summary>
+ /// Occurs when there is a text log message available.
+ /// </summary>
+ event EventHandler<String> ProgressLog;
+
+ /// <summary>
+ /// Gets the downloading packages step progress.
+ /// </summary>
+ double DownloadingPackagesProgress { get; }
+
+ /// <summary>
+ /// Gets the downloading packages step status.
+ /// </summary>
+ String DownloadingPackagesStatus { get; }
+
+ /// <summary>
+ /// Occurs when the <see cref="CurrentStep"/> has changed.
+ /// </summary>
+ event EventHandler<MachineUpdateSteps> ProgressStep;
+
+ /// <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>
+ /// 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);
+ }
+}