OSDN Git Service

add win/C# diff files
[handbrake-jp/handbrake-jp.git] / win / C# / HandBrake.Framework / Model / UpdateCheckResult.cs.diff
1 diff --git a/win/C#/HandBrake.Framework/Model/UpdateCheckResult.cs b/win/C#/HandBrake.Framework/Model/UpdateCheckResult.cs
2 new file mode 100644
3 index 0000000..ba04100
4 --- /dev/null
5 +++ b/win/C#/HandBrake.Framework/Model/UpdateCheckResult.cs
6 @@ -0,0 +1,71 @@
7 +/*  UpdateCheckResult.cs $\r
8 +    This file is part of the HandBrake source code.\r
9 +    Homepage: <http://handbrake.fr>.\r
10 +    It may be used under the terms of the GNU General Public License. */\r
11 +\r
12 +namespace HandBrake.Framework.Model\r
13 +{\r
14 +    using System;\r
15 +    using System.Threading;\r
16 +\r
17 +    /// <summary>\r
18 +    /// Used in EndUpdateCheck() for update checking and the IAsyncResult design pattern.\r
19 +    /// </summary>\r
20 +    public class UpdateCheckResult : IAsyncResult\r
21 +    {\r
22 +        /// <summary>\r
23 +        /// Initializes a new instance of the <see cref="HandBrake.Framework.Model.UpdateCheckResult"/> class.\r
24 +        /// </summary>\r
25 +        /// <param name="asyncState">\r
26 +        /// The async state.\r
27 +        /// </param>\r
28 +        /// <param name="info">\r
29 +        /// The info.\r
30 +        /// </param>\r
31 +        public UpdateCheckResult(object asyncState, UpdateCheckInformation info)\r
32 +        {\r
33 +            this.AsyncState = asyncState;\r
34 +            this.Result = info;\r
35 +        }\r
36 +\r
37 +        /// <summary>\r
38 +        /// Gets whether the check was executed in debug mode.\r
39 +        /// </summary>\r
40 +        public object AsyncState { get; private set; }\r
41 +\r
42 +        /// <summary>\r
43 +        /// Gets the result of the update check.\r
44 +        /// </summary>\r
45 +        public UpdateCheckInformation Result { get; private set; }\r
46 +\r
47 +        /// <summary>\r
48 +        /// Gets AsyncWaitHandle.\r
49 +        /// </summary>\r
50 +        /// <exception cref="NotImplementedException">\r
51 +        /// </exception>\r
52 +        public WaitHandle AsyncWaitHandle\r
53 +        {\r
54 +            get { throw new NotImplementedException(); }\r
55 +        }\r
56 +\r
57 +        /// <summary>\r
58 +        /// Gets a value indicating whether CompletedSynchronously.\r
59 +        /// </summary>\r
60 +        /// <exception cref="NotImplementedException">\r
61 +        /// </exception>\r
62 +        public bool CompletedSynchronously\r
63 +        {\r
64 +            get { throw new NotImplementedException(); }\r
65 +        }\r
66 +\r
67 +        /// <summary>\r
68 +        /// Gets a value indicating whether IsCompleted.\r
69 +        /// </summary>\r
70 +        /// <exception cref="NotImplementedException">\r
71 +        /// </exception>\r
72 +        public bool IsCompleted\r
73 +        {\r
74 +            get { throw new NotImplementedException(); }\r
75 +        }\r
76 +    }\r
77 +}\r