OSDN Git Service

import original 0.9.5 release
[handbrake-jp/handbrake-jp.git] / win / C# / HandBrake.ApplicationServices / Services / Interfaces / IEncode.cs
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs b/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs
new file mode 100644 (file)
index 0000000..9a0681c
--- /dev/null
@@ -0,0 +1,60 @@
+/*  IEncode.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.ApplicationServices.Services.Interfaces\r
+{\r
+    using System;\r
+\r
+    /// <summary>\r
+    /// The IEncode Interface\r
+    /// </summary>\r
+    public interface IEncode\r
+    {\r
+        /// <summary>\r
+        /// Fires when a new CLI Job starts\r
+        /// </summary>\r
+        event EventHandler EncodeStarted;\r
+\r
+        /// <summary>\r
+        /// Fires when a CLI job finishes.\r
+        /// </summary>\r
+        event EventHandler EncodeEnded;\r
+\r
+        /// <summary>\r
+        /// Encode process has progressed\r
+        /// </summary>\r
+        event Encode.EncodeProgessStatus EncodeStatusChanged;\r
+\r
+        /// <summary>\r
+        /// Gets a value indicating whether IsEncoding.\r
+        /// </summary>\r
+        bool IsEncoding { get; }\r
+\r
+        /// <summary>\r
+        /// Gets ActivityLog.\r
+        /// </summary>\r
+        string ActivityLog { get; }\r
+\r
+        /// <summary>\r
+        /// Create a preview sample video\r
+        /// </summary>\r
+        /// <param name="query">\r
+        /// The CLI Query\r
+        /// </param>\r
+        void CreatePreviewSample(string query);\r
+\r
+        /// <summary>\r
+        /// Kill the CLI process\r
+        /// </summary>\r
+        void Stop();\r
+\r
+        /// <summary>\r
+        /// Attempt to Safely kill a DirectRun() CLI\r
+        /// NOTE: This will not work with a MinGW CLI\r
+        /// Note: http://www.cygwin.com/ml/cygwin/2006-03/msg00330.html\r
+        /// </summary>\r
+        void SafelyClose();\r
+    }\r
+}
\ No newline at end of file