blob: d2be997b5ff0a811d76bc9158bc234c417ccb339 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
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);
/// <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);
}
}
|