diff options
author | sr55 <[email protected]> | 2012-06-30 14:07:50 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-06-30 14:07:50 +0000 |
commit | ca023df6b2119d7bf29ade5c07f644fdf2de8731 (patch) | |
tree | 6ac3b68670cc9db3876c18239d56f0461ae7953b /win/CS/HandBrakeWPF/Services/Interfaces | |
parent | 4d6d9e007cbfadd9f63860038a8048a2c8da390a (diff) |
WinGui: Refactor the Update service and add a new options tab to deal with updates.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4799 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Interfaces')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Interfaces/IUpdateService.cs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Interfaces/IUpdateService.cs b/win/CS/HandBrakeWPF/Services/Interfaces/IUpdateService.cs new file mode 100644 index 000000000..cd1b50e9f --- /dev/null +++ b/win/CS/HandBrakeWPF/Services/Interfaces/IUpdateService.cs @@ -0,0 +1,51 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <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="completed">
+ /// The complete.
+ /// </param>
+ /// <param name="progress">
+ /// The progress.
+ /// </param>
+ void DownloadFile(string url, Action<DownloadStatus> completed, Action<DownloadStatus> progress);
+ }
+}
|