blob: 571d5c9314a38b57fde364c3d5b763ba95763fa2 (
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
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IUpdateService.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// An Interface for the Update Service
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Services.Interfaces
{
using System;
using HandBrakeWPF.Model;
/// <summary>
/// An Interface for the Update Service
/// </summary>
public interface IUpdateService
{
/// <summary>
/// Perform an update check at application start, but only daily, weekly or monthly depending on the users settings.
/// </summary>
/// <param name="callback">
/// The callback.
/// </param>
void PerformStartupUpdateCheck(Action<UpdateCheckInformation> callback);
/// <summary>
/// Perform an Update check and execute the Action when complete.
/// </summary>
/// <param name="callback">
/// The callback.
/// </param>
void CheckForUpdates(Action<UpdateCheckInformation> callback);
/// <summary>
/// Download the update file.
/// </summary>
/// <param name="url">
/// The url.
/// </param>
/// <param name="expectedSHA1Hash">
/// The expected SHA-1 Hash.
/// </param>
/// <param name="completed">
/// The complete.
/// </param>
/// <param name="progress">
/// The progress.
/// </param>
void DownloadFile(string url, string expectedSHA1Hash, Action<DownloadStatus> completed, Action<DownloadStatus> progress);
}
}
|