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 * I really dislike this, Need to replace this sooner rather than later.
\r
21 /// Setup the Settings used by the applicaiton with this library
\r
23 /// <param name="versionString">
\r
24 /// The version / name of the application that's using this DLL.
\r
26 /// <param name="instanceId">
\r
29 /// <param name="completionOption">
\r
30 /// The completion option.
\r
32 /// <param name="disableDvdNav">
\r
33 /// The disable dvd nav.
\r
35 /// <param name="growlEncode">
\r
36 /// The growl encode.
\r
38 /// <param name="growlQueue">
\r
39 /// The growl queue.
\r
41 /// <param name="processPriority">
\r
42 /// The process priority.
\r
44 /// <param name="saveLogPath">
\r
45 /// The save log path.
\r
47 /// <param name="saveLogToSpecifiedPath">
\r
48 /// The save log to specified path.
\r
50 /// <param name="saveLogWithVideo">
\r
51 /// The save log with video.
\r
53 /// <param name="showCliForInGuiEncodeStatus">
\r
54 /// The show cli for in gui encode status.
\r
56 /// <param name="preventSleep">
\r
57 /// Prevent the system from sleeping
\r
59 public static void SetupSettings(string versionString, string version, int build, int instanceId, string completionOption, bool disableDvdNav,
\r
60 bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,
\r
61 bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep)
\r
63 InstanceId = instanceId;
\r
64 HandBrakeGuiVersionString = versionString;
\r
67 CompletionOption = completionOption;
\r
68 DisableDvdNav = disableDvdNav;
\r
69 GrowlEncode = growlEncode;
\r
70 GrowlQueue = growlQueue;
\r
71 ProcessPriority = processPriority;
\r
72 SaveLogPath = saveLogPath;
\r
73 SaveLogToSpecifiedPath = saveLogToSpecifiedPath;
\r
74 SaveLogWithVideo = saveLogWithVideo;
\r
75 ShowCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus;
\r
76 PreventSleep = preventSleep;
\r
80 /// Gets the Assembly version.
\r
85 public static Version AssemblyVersion()
\r
87 return Assembly.GetExecutingAssembly().GetName().Version;
\r
91 /// The instance ID used by the Main Applicaiton
\r
93 public static int InstanceId;
\r
96 /// The Applicaiton that uses this DLL can pass in it's version string.
\r
98 public static string HandBrakeGuiVersionString;
\r
101 /// HandBrakes Version or Svn revision
\r
103 public static string Version;
\r
106 /// Handbrakes Build number
\r
108 public static int Build;
\r
111 /// What to do when the encode completes.
\r
113 public static string CompletionOption;
\r
116 /// Disable LibDvdNav
\r
118 public static bool DisableDvdNav;
\r
121 /// Growl when an encode has finished.
\r
123 public static bool GrowlEncode;
\r
126 /// Growl when a queue has finished.
\r
128 public static bool GrowlQueue;
\r
131 /// The Process Priority for HandBrakeCLI
\r
133 public static string ProcessPriority;
\r
136 /// Path to save log files to.
\r
138 public static string SaveLogPath;
\r
141 /// Copy log files to the SaveLogPath
\r
143 public static bool SaveLogToSpecifiedPath;
\r
146 /// Save a copy of the log files with the video
\r
148 public static bool SaveLogWithVideo;
\r
151 /// Show the CLI window when encoding.
\r
153 public static bool ShowCliForInGuiEncodeStatus;
\r
156 /// Prevent system sleep
\r
158 public static bool PreventSleep;
\r