/* 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 { /** * I really dislike this, Need to replace this sooner rather than later. **/ /// /// Setup the Settings used by the applicaiton with this library /// /// /// The version / name of the application that's using this DLL. /// /// /// 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(string versionString, string version, int build, int instanceId, string completionOption, bool disableDvdNav, bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath, bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep) { InstanceId = instanceId; HandBrakeGuiVersionString = versionString; Version = version; Build = build; CompletionOption = completionOption; DisableDvdNav = disableDvdNav; GrowlEncode = growlEncode; GrowlQueue = growlQueue; ProcessPriority = processPriority; SaveLogPath = saveLogPath; SaveLogToSpecifiedPath = saveLogToSpecifiedPath; SaveLogWithVideo = saveLogWithVideo; ShowCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus; PreventSleep = preventSleep; } /// /// Gets the Assembly version. /// /// /// Version data /// public static Version AssemblyVersion() { return Assembly.GetExecutingAssembly().GetName().Version; } /// /// The instance ID used by the Main Applicaiton /// public static int InstanceId; /// /// The Applicaiton that uses this DLL can pass in it's version string. /// public static string HandBrakeGuiVersionString; /// /// HandBrakes Version or Svn revision /// public static string Version; /// /// Handbrakes Build number /// public static int Build; /// /// What to do when the encode completes. /// public static string CompletionOption; /// /// Disable LibDvdNav /// public static bool DisableDvdNav; /// /// Growl when an encode has finished. /// public static bool GrowlEncode; /// /// Growl when a queue has finished. /// public static bool GrowlQueue; /// /// The Process Priority for HandBrakeCLI /// public static string ProcessPriority; /// /// Path to save log files to. /// public static string SaveLogPath; /// /// Copy log files to the SaveLogPath /// public static bool SaveLogToSpecifiedPath; /// /// Save a copy of the log files with the video /// public static bool SaveLogWithVideo; /// /// Show the CLI window when encoding. /// public static bool ShowCliForInGuiEncodeStatus; /// /// Prevent system sleep /// public static bool PreventSleep; } }