/// <summary>\r
/// Setup the Settings used by the applicaiton with this library\r
/// </summary>\r
- /// <param name="cli_minimized">\r
- /// The cli_minimized.\r
+ /// <param name="versionString">\r
+ /// The version / name of the application that's using this DLL.\r
+ /// </param>\r
+ /// <param name="instanceId">\r
+ /// The Instance ID\r
/// </param>\r
/// <param name="completionOption">\r
/// The completion option.\r
/// <param name="disableDvdNav">\r
/// The disable dvd nav.\r
/// </param>\r
- /// <param name="enocdeStatusInGui">\r
- /// The enocde status in gui.\r
- /// </param>\r
/// <param name="growlEncode">\r
/// The growl encode.\r
/// </param>\r
/// <param name="showCliForInGuiEncodeStatus">\r
/// The show cli for in gui encode status.\r
/// </param>\r
- public static void SetupSettings(bool cli_minimized, string completionOption, bool disableDvdNav, bool enocdeStatusInGui,\r
+ /// <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
bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,\r
- bool saveLogWithVideo, bool showCliForInGuiEncodeStatus)\r
+ bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep)\r
{\r
- Properties.Settings.Default.cli_minimized = cli_minimized;\r
- Properties.Settings.Default.CompletionOption = completionOption;\r
- Properties.Settings.Default.disableDvdNav = disableDvdNav;\r
- Properties.Settings.Default.enocdeStatusInGui = enocdeStatusInGui;\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
-\r
- Properties.Settings.Default.Save();\r
+ InstanceId = instanceId;\r
+ HandBrakeGuiVersionString = versionString;\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
{\r
return Assembly.GetExecutingAssembly().GetName().Version;\r
}\r
+\r
+ /// <summary>\r
+ /// The instance ID used by the Main Applicaiton\r
+ /// </summary>\r
+ public static int InstanceId;\r
+\r
+ /// <summary>\r
+ /// 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