summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/UpdateCheckInformation.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-07-04 14:24:59 +0000
committersr55 <[email protected]>2009-07-04 14:24:59 +0000
commitbdf19259ac2d6ac94abf0fad38ce6c98e3e58460 (patch)
tree3b92fa3d9ef24eeb3e71a45574b1c7f96d720558 /win/C#/Functions/UpdateCheckInformation.cs
parentf3ea70992ab591a46754f68f5b7b02ca9d0529cc (diff)
WinGui:
- Update checker code cleaned up and multi-threaded. (Thanks to darkassassin ) Made some minor changes to this code to fit it in. http://forum.handbrake.fr/viewtopic.php?f=4&t=11353 - Queue window no longer takes focus on each new addition to the queue. ( Quite annoying otherwise ) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2661 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/UpdateCheckInformation.cs')
-rw-r--r--win/C#/Functions/UpdateCheckInformation.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/win/C#/Functions/UpdateCheckInformation.cs b/win/C#/Functions/UpdateCheckInformation.cs
new file mode 100644
index 000000000..253817866
--- /dev/null
+++ b/win/C#/Functions/UpdateCheckInformation.cs
@@ -0,0 +1,23 @@
+using System;
+
+namespace Handbrake.Functions
+{
+ /// <summary>
+ /// Provides information about an update check.
+ /// </summary>
+ public struct UpdateCheckInformation
+ {
+ 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.
+ /// </summary>
+ public AppcastReader BuildInformation { get; set; }
+
+ /// <summary>
+ /// Gets the error that occurred, if any. This will be null if no error occured.
+ /// </summary>
+ public Exception Error { get; set; }
+ }
+}