2 This file is part of the HandBrake source code.
\r
3 Homepage: <http://handbrake.fr>.
\r
4 It may be used under the terms of the GNU General Public License. */
\r
6 namespace HandBrake.ApplicationServices
\r
9 using System.Reflection;
\r
12 /// Initialize ApplicationServices
\r
17 /// Setup the Settings used by the applicaiton with this library
\r
19 /// <param name="versionString">
\r
20 /// The version / name of the application that's using this DLL.
\r
22 /// <param name="instanceId">
\r
25 /// <param name="completionOption">
\r
26 /// The completion option.
\r
28 /// <param name="disableDvdNav">
\r
29 /// The disable dvd nav.
\r
31 /// <param name="growlEncode">
\r
32 /// The growl encode.
\r
34 /// <param name="growlQueue">
\r
35 /// The growl queue.
\r
37 /// <param name="processPriority">
\r
38 /// The process priority.
\r
40 /// <param name="saveLogPath">
\r
41 /// The save log path.
\r
43 /// <param name="saveLogToSpecifiedPath">
\r
44 /// The save log to specified path.
\r
46 /// <param name="saveLogWithVideo">
\r
47 /// The save log with video.
\r
49 /// <param name="showCliForInGuiEncodeStatus">
\r
50 /// The show cli for in gui encode status.
\r
52 /// <param name="preventSleep">
\r
53 /// Prevent the system from sleeping
\r
55 public static void SetupSettings(string versionString, int instanceId, string completionOption, bool disableDvdNav,
\r
56 bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,
\r
57 bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep)
\r
59 InstanceId = instanceId;
\r
60 HandBrakeGuiVersionString = versionString;
\r
61 CompletionOption = completionOption;
\r
62 DisableDvdNav = disableDvdNav;
\r
63 GrowlEncode = growlEncode;
\r
64 GrowlQueue = growlQueue;
\r
65 ProcessPriority = processPriority;
\r
66 SaveLogPath = saveLogPath;
\r
67 SaveLogToSpecifiedPath = saveLogToSpecifiedPath;
\r
68 SaveLogWithVideo = saveLogWithVideo;
\r
69 ShowCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus;
\r
70 PreventSleep = preventSleep;
\r
74 /// Gets the Assembly version.
\r
79 public static Version AssemblyVersion()
\r
81 return Assembly.GetExecutingAssembly().GetName().Version;
\r
85 /// The instance ID used by the Main Applicaiton
\r
87 public static int InstanceId;
\r
90 /// The Applicaiton that uses this DLL can pass in it's version string.
\r
92 public static string HandBrakeGuiVersionString;
\r
95 /// What to do when the encode completes.
\r
97 public static string CompletionOption;
\r
100 /// Disable LibDvdNav
\r
102 public static bool DisableDvdNav;
\r
105 /// Growl when an encode has finished.
\r
107 public static bool GrowlEncode;
\r
110 /// Growl when a queue has finished.
\r
112 public static bool GrowlQueue;
\r
115 /// The Process Priority for HandBrakeCLI
\r
117 public static string ProcessPriority;
\r
120 /// Path to save log files to.
\r
122 public static string SaveLogPath;
\r
125 /// Copy log files to the SaveLogPath
\r
127 public static bool SaveLogToSpecifiedPath;
\r
130 /// Save a copy of the log files with the video
\r
132 public static bool SaveLogWithVideo;
\r
135 /// Show the CLI window when encoding.
\r
137 public static bool ShowCliForInGuiEncodeStatus;
\r
140 /// Prevent system sleep
\r
142 public static bool PreventSleep;
\r