OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / HandBrake.Framework / Model / UpdateCheckInformation.cs
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
5 \r
6 namespace HandBrake.Framework.Model\r
7 {\r
8     using System;\r
9     using HandBrake.Framework.Helpers;\r
10 \r
11     /// <summary>\r
12     /// Provides information about an update check.\r
13     /// </summary>\r
14     public struct UpdateCheckInformation\r
15     {\r
16         /// <summary>\r
17         /// Gets or sets a value indicating whether a New Version is Available.\r
18         /// </summary>\r
19         public bool NewVersionAvailable { get; set; }\r
20 \r
21         /// <summary>\r
22         /// Gets a value indicating whether an Error Occured.\r
23         /// </summary>\r
24         public bool ErrorOccured\r
25         {\r
26             get { return this.Error != null; }\r
27         }\r
28 \r
29         /// <summary>\r
30         /// Gets or sets information about the new build, if any. This will be null if there is no new verison.\r
31         /// </summary>\r
32         public AppcastReader BuildInformation { get; set; }\r
33 \r
34         /// <summary>\r
35         /// Gets or sets the error that occurred, if any. This will be null if no error occured.\r
36         /// </summary>\r
37         public Exception Error { get; set; }\r
38     }\r
39 }\r