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="cli_minimized">
\r
20 /// The cli_minimized.
\r
22 /// <param name="completionOption">
\r
23 /// The completion option.
\r
25 /// <param name="disableDvdNav">
\r
26 /// The disable dvd nav.
\r
28 /// <param name="enocdeStatusInGui">
\r
29 /// The enocde status in gui.
\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(bool cli_minimized, string completionOption, bool disableDvdNav, bool enocdeStatusInGui,
\r
56 bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,
\r
57 bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep)
\r
59 Properties.Settings.Default.cli_minimized = cli_minimized;
\r
60 Properties.Settings.Default.CompletionOption = completionOption;
\r
61 Properties.Settings.Default.disableDvdNav = disableDvdNav;
\r
62 Properties.Settings.Default.enocdeStatusInGui = enocdeStatusInGui;
\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