OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / HandBrake.ApplicationServices / Init.cs
index d279a0b..e51683a 100644 (file)
@@ -13,6 +13,10 @@ namespace HandBrake.ApplicationServices
     /// </summary>\r
     public class Init\r
     {\r
+        /**\r
+         *  I really dislike this, Need to replace this sooner rather than later.\r
+         **/ \r
+\r
         /// <summary>\r
         /// Setup the Settings used by the applicaiton with this library\r
         /// </summary>\r
@@ -52,24 +56,24 @@ namespace HandBrake.ApplicationServices
         /// <param name="preventSleep">\r
         /// Prevent the system from sleeping\r
         /// </param>\r
-        public static void SetupSettings(string versionString, int instanceId, string completionOption, bool disableDvdNav,\r
+        public static void SetupSettings(string versionString, string version, int build, int instanceId, string completionOption, bool disableDvdNav,\r
                                   bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,\r
                                   bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep)\r
         {\r
             InstanceId = instanceId;\r
             HandBrakeGuiVersionString = versionString;\r
-            Properties.Settings.Default.CompletionOption = completionOption;\r
-            Properties.Settings.Default.disableDvdNav = disableDvdNav;\r
-            Properties.Settings.Default.growlEncode = growlEncode;\r
-            Properties.Settings.Default.growlQueue = growlQueue;\r
-            Properties.Settings.Default.processPriority = processPriority;\r
-            Properties.Settings.Default.saveLogPath = saveLogPath;\r
-            Properties.Settings.Default.saveLogToSpecifiedPath = saveLogToSpecifiedPath;\r
-            Properties.Settings.Default.saveLogWithVideo = saveLogWithVideo;\r
-            Properties.Settings.Default.showCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus;\r
-            Properties.Settings.Default.preventSleep = preventSleep;\r
-\r
-            Properties.Settings.Default.Save();\r
+            Version = version;\r
+            Build = build;\r
+            CompletionOption = completionOption;\r
+            DisableDvdNav = disableDvdNav;\r
+            GrowlEncode = growlEncode;\r
+            GrowlQueue = growlQueue;\r
+            ProcessPriority = processPriority;\r
+            SaveLogPath = saveLogPath;\r
+            SaveLogToSpecifiedPath = saveLogToSpecifiedPath;\r
+            SaveLogWithVideo = saveLogWithVideo;\r
+            ShowCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus;\r
+            PreventSleep = preventSleep;\r
         }\r
 \r
         /// <summary>\r
@@ -92,5 +96,65 @@ namespace HandBrake.ApplicationServices
         /// The Applicaiton that uses this DLL can pass in it's version string.\r
         /// </summary>\r
         public static string HandBrakeGuiVersionString;\r
+\r
+        /// <summary>\r
+        /// HandBrakes Version or Svn revision\r
+        /// </summary>\r
+        public static string Version;\r
+\r
+        /// <summary>\r
+        /// Handbrakes Build number\r
+        /// </summary>\r
+        public static int Build;\r
+\r
+        /// <summary>\r
+        /// What to do when the encode completes.\r
+        /// </summary>\r
+        public static string CompletionOption;\r
+\r
+        /// <summary>\r
+        /// Disable LibDvdNav\r
+        /// </summary>\r
+        public static bool DisableDvdNav;\r
+\r
+        /// <summary>\r
+        /// Growl when an encode has finished.\r
+        /// </summary>\r
+        public static bool GrowlEncode;\r
+\r
+        /// <summary>\r
+        /// Growl when a queue has finished.\r
+        /// </summary>\r
+        public static bool GrowlQueue;\r
+\r
+        /// <summary>\r
+        /// The Process Priority for HandBrakeCLI\r
+        /// </summary>\r
+        public static string ProcessPriority;\r
+\r
+        /// <summary>\r
+        /// Path to save log files to.\r
+        /// </summary>\r
+        public static string SaveLogPath;\r
+\r
+        /// <summary>\r
+        /// Copy log files to the SaveLogPath\r
+        /// </summary>\r
+        public static bool SaveLogToSpecifiedPath;\r
+\r
+        /// <summary>\r
+        /// Save a copy of the log files with the video\r
+        /// </summary>\r
+        public static bool SaveLogWithVideo;\r
+\r
+        /// <summary>\r
+        /// Show the CLI window when encoding.\r
+        /// </summary>\r
+        public static bool ShowCliForInGuiEncodeStatus;\r
+\r
+        /// <summary>\r
+        /// Prevent system sleep\r
+        /// </summary>\r
+        public static bool PreventSleep;\r
     }\r
 }\r