diff options
Diffstat (limited to 'win/C#/Functions/UpdateCheckInformation.cs')
-rw-r--r-- | win/C#/Functions/UpdateCheckInformation.cs | 70 |
1 files changed, 60 insertions, 10 deletions
diff --git a/win/C#/Functions/UpdateCheckInformation.cs b/win/C#/Functions/UpdateCheckInformation.cs index c157f8a68..b3ed02b88 100644 --- a/win/C#/Functions/UpdateCheckInformation.cs +++ b/win/C#/Functions/UpdateCheckInformation.cs @@ -1,23 +1,38 @@ -using System;
-using System.Threading;
+/* UpdateCheckInformation.cs $
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
namespace Handbrake.Functions
{
+ using System;
+ using System.Threading;
+
/// <summary>
/// Provides information about an update check.
/// </summary>
public struct UpdateCheckInformation
{
+ /// <summary>
+ /// Gets or sets a value indicating whether a New Version is Available.
+ /// </summary>
public bool NewVersionAvailable { get; set; }
- public bool ErrorOccured { get { return Error != null; } }
/// <summary>
- /// Gets information about the new build, if any. This will be null if there is no new verison.
+ /// Gets a value indicating whether an Error Occured.
+ /// </summary>
+ public bool ErrorOccured
+ {
+ get { return this.Error != null; }
+ }
+
+ /// <summary>
+ /// Gets or sets information about the new build, if any. This will be null if there is no new verison.
/// </summary>
public AppcastReader BuildInformation { get; set; }
/// <summary>
- /// Gets the error that occurred, if any. This will be null if no error occured.
+ /// Gets or sets the error that occurred, if any. This will be null if no error occured.
/// </summary>
public Exception Error { get; set; }
}
@@ -27,10 +42,19 @@ namespace Handbrake.Functions /// </summary>
public class UpdateCheckResult : IAsyncResult
{
+ /// <summary>
+ /// Initializes a new instance of the <see cref="UpdateCheckResult"/> class.
+ /// </summary>
+ /// <param name="asyncState">
+ /// The async state.
+ /// </param>
+ /// <param name="info">
+ /// The info.
+ /// </param>
public UpdateCheckResult(object asyncState, UpdateCheckInformation info)
{
- AsyncState = asyncState;
- Result = info;
+ this.AsyncState = asyncState;
+ this.Result = info;
}
/// <summary>
@@ -43,8 +67,34 @@ namespace Handbrake.Functions /// </summary>
public UpdateCheckInformation Result { get; private set; }
- public WaitHandle AsyncWaitHandle { get { throw new NotImplementedException(); } }
- public bool CompletedSynchronously { get { throw new NotImplementedException(); } }
- public bool IsCompleted { get { throw new NotImplementedException(); } }
+ /// <summary>
+ /// Gets AsyncWaitHandle.
+ /// </summary>
+ /// <exception cref="NotImplementedException">
+ /// </exception>
+ public WaitHandle AsyncWaitHandle
+ {
+ get { throw new NotImplementedException(); }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether CompletedSynchronously.
+ /// </summary>
+ /// <exception cref="NotImplementedException">
+ /// </exception>
+ public bool CompletedSynchronously
+ {
+ get { throw new NotImplementedException(); }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether IsCompleted.
+ /// </summary>
+ /// <exception cref="NotImplementedException">
+ /// </exception>
+ public bool IsCompleted
+ {
+ get { throw new NotImplementedException(); }
+ }
}
}
|