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 Properties.Settings.Default.CompletionOption = completionOption;
\r
62 Properties.Settings.Default.disableDvdNav = disableDvdNav;
\r
63 Properties.Settings.Default.growlEncode = growlEncode;
\r
64 Properties.Settings.Default.growlQueue = growlQueue;
\r
65 Properties.Settings.Default.processPriority = processPriority;
\r
66 Properties.Settings.Default.saveLogPath = saveLogPath;
\r
67 Properties.Settings.Default.saveLogToSpecifiedPath = saveLogToSpecifiedPath;
\r
68 Properties.Settings.Default.saveLogWithVideo = saveLogWithVideo;
\r
69 Properties.Settings.Default.showCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus;
\r
70 Properties.Settings.Default.preventSleep = preventSleep;
\r
72 Properties.Settings.Default.Save();
\r
76 /// Gets the Assembly version.
\r
81 public static Version AssemblyVersion()
\r
83 return Assembly.GetExecutingAssembly().GetName().Version;
\r
87 /// The instance ID used by the Main Applicaiton
\r
89 public static int InstanceId;
\r
92 /// The Applicaiton that uses this DLL can pass in it's version string.
\r
94 public static string HandBrakeGuiVersionString;
\r