OSDN Git Service

add win/C# diff files
[handbrake-jp/handbrake-jp.git] / win / C# / HandBrake.Framework / Services / Interfaces / IErrorService.cs.diff
diff --git a/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs.diff b/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs.diff
new file mode 100644 (file)
index 0000000..da2f179
--- /dev/null
@@ -0,0 +1,48 @@
+diff --git a/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs b/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs
+new file mode 100644
+index 0000000..9eceead
+--- /dev/null
++++ b/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs
+@@ -0,0 +1,41 @@
++/*  IErrorService.cs $\r
++    This file is part of the HandBrake source code.\r
++    Homepage: <http://handbrake.fr>.\r
++    It may be used under the terms of the GNU General Public License. */\r
++\r
++namespace HandBrake.Framework.Services.Interfaces\r
++{\r
++    /// <summary>\r
++    /// The Error service for showing the exception window.\r
++    /// </summary>\r
++    public interface IErrorService\r
++    {\r
++        /// <summary>\r
++        /// Show an Error Window\r
++        /// </summary>\r
++        /// <param name="shortError">\r
++        /// The short error message for the user to read\r
++        /// </param>\r
++        /// <param name="longError">\r
++        /// Exception string or advanced details\r
++        /// </param>\r
++        void ShowError(string shortError, string longError);\r
++\r
++        /// <summary>\r
++        /// Show a Notice or Warning Message.\r
++        /// </summary>\r
++        /// <param name="notice">\r
++        /// The text to display to the user\r
++        /// </param>\r
++        /// <param name="isWarning">\r
++        /// Is a warning window, show the warning icon instead of the notice\r
++        /// </param>\r
++        void ShowNotice(string notice, bool isWarning);\r
++\r
++        /// <summary>\r
++        /// Log the error\r
++        /// </summary>\r
++        /// <param name="state">The error message</param>\r
++        void LogError(object state);\r
++    }\r
++}
+\ No newline at end of file