OSDN Git Service

CLI: update the built in presets
[handbrake-jp/handbrake-jp-git.git] / win / C# / HandBrake.ApplicationServices / Init.cs
index d279a0b..bacf132 100644 (file)
@@ -58,18 +58,16 @@ namespace HandBrake.ApplicationServices
         {\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
+            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 +90,55 @@ 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
+        /// 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