/* Init.cs $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ namespace HandBrake.ApplicationServices { using System; using System.Reflection; /// /// Initialize ApplicationServices /// public class Init { /// /// Setup the Settings used by the applicaiton with this library /// /// /// The Instance ID /// /// /// The completion option. /// /// /// The disable dvd nav. /// /// /// The growl encode. /// /// /// The growl queue. /// /// /// The process priority. /// /// /// The save log path. /// /// /// The save log to specified path. /// /// /// The save log with video. /// /// /// The show cli for in gui encode status. /// /// /// Prevent the system from sleeping /// public static void SetupSettings(int instanceId, string completionOption, bool disableDvdNav, bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath, bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep) { InstanceId = instanceId; Properties.Settings.Default.CompletionOption = completionOption; Properties.Settings.Default.disableDvdNav = disableDvdNav; Properties.Settings.Default.growlEncode = growlEncode; Properties.Settings.Default.growlQueue = growlQueue; Properties.Settings.Default.processPriority = processPriority; Properties.Settings.Default.saveLogPath = saveLogPath; Properties.Settings.Default.saveLogToSpecifiedPath = saveLogToSpecifiedPath; Properties.Settings.Default.saveLogWithVideo = saveLogWithVideo; Properties.Settings.Default.showCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus; Properties.Settings.Default.preventSleep = preventSleep; Properties.Settings.Default.Save(); } /// /// Gets the Assembly version. /// /// /// Version data /// public static Version AssemblyVersion() { return Assembly.GetExecutingAssembly().GetName().Version; } public static int InstanceId; } }