2 using System.Threading;
\r
4 namespace Handbrake.Functions
\r
7 /// Provides information about an update check.
\r
9 public struct UpdateCheckInformation
\r
11 public bool NewVersionAvailable { get; set; }
\r
12 public bool ErrorOccured { get { return Error != null; } }
\r
15 /// Gets information about the new build, if any. This will be null if there is no new verison.
\r
17 public AppcastReader BuildInformation { get; set; }
\r
20 /// Gets the error that occurred, if any. This will be null if no error occured.
\r
22 public Exception Error { get; set; }
\r
26 /// Used in EndUpdateCheck() for update checking and the IAsyncResult design pattern.
\r
28 public class UpdateCheckResult : IAsyncResult
\r
30 public UpdateCheckResult(object asyncState, UpdateCheckInformation info)
\r
32 AsyncState = asyncState;
\r
37 /// Gets whether the check was executed in debug mode.
\r
39 public object AsyncState { get; private set; }
\r
42 /// Gets the result of the update check.
\r
44 public UpdateCheckInformation Result { get; private set; }
\r
46 public WaitHandle AsyncWaitHandle { get { throw new NotImplementedException(); } }
\r
47 public bool CompletedSynchronously { get { throw new NotImplementedException(); } }
\r
48 public bool IsCompleted { get { throw new NotImplementedException(); } }
\r