1 /* UpdateCheckInformation.cs $
\r
2 This file is part of the HandBrake source code.
\r
3 Homepage: <http://handbrake.fr>.
\r
4 It may be used under the terms of the GNU General Public License. */
\r
6 namespace Handbrake.Functions
\r
9 using System.Threading;
\r
12 /// Provides information about an update check.
\r
14 public struct UpdateCheckInformation
\r
17 /// Gets or sets a value indicating whether a New Version is Available.
\r
19 public bool NewVersionAvailable { get; set; }
\r
22 /// Gets a value indicating whether an Error Occured.
\r
24 public bool ErrorOccured
\r
26 get { return this.Error != null; }
\r
30 /// Gets or sets information about the new build, if any. This will be null if there is no new verison.
\r
32 public AppcastReader BuildInformation { get; set; }
\r
35 /// Gets or sets the error that occurred, if any. This will be null if no error occured.
\r
37 public Exception Error { get; set; }
\r
41 /// Used in EndUpdateCheck() for update checking and the IAsyncResult design pattern.
\r
43 public class UpdateCheckResult : IAsyncResult
\r
46 /// Initializes a new instance of the <see cref="UpdateCheckResult"/> class.
\r
48 /// <param name="asyncState">
\r
49 /// The async state.
\r
51 /// <param name="info">
\r
54 public UpdateCheckResult(object asyncState, UpdateCheckInformation info)
\r
56 this.AsyncState = asyncState;
\r
61 /// Gets whether the check was executed in debug mode.
\r
63 public object AsyncState { get; private set; }
\r
66 /// Gets the result of the update check.
\r
68 public UpdateCheckInformation Result { get; private set; }
\r
71 /// Gets AsyncWaitHandle.
\r
73 /// <exception cref="NotImplementedException">
\r
75 public WaitHandle AsyncWaitHandle
\r
77 get { throw new NotImplementedException(); }
\r
81 /// Gets a value indicating whether CompletedSynchronously.
\r
83 /// <exception cref="NotImplementedException">
\r
85 public bool CompletedSynchronously
\r
87 get { throw new NotImplementedException(); }
\r
91 /// Gets a value indicating whether IsCompleted.
\r
93 /// <exception cref="NotImplementedException">
\r
95 public bool IsCompleted
\r
97 get { throw new NotImplementedException(); }
\r