blob: a0a85d40ee63c86c2891032a5c81ad0d05004073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/* Init.cs $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.fr>.
It may be used under the terms of the GNU General Public License. */
namespace HandBrake.ApplicationServices
{
/// <summary>
/// Initialize ApplicationServices
/// </summary>
public class Init
{
/// <summary>
/// Setup the Settings used by the applicaiton with this library
/// </summary>
/// <param name="cli_minimized">
/// The cli_minimized.
/// </param>
/// <param name="completionOption">
/// The completion option.
/// </param>
/// <param name="disableDvdNav">
/// The disable dvd nav.
/// </param>
/// <param name="enocdeStatusInGui">
/// The enocde status in gui.
/// </param>
/// <param name="growlEncode">
/// The growl encode.
/// </param>
/// <param name="growlQueue">
/// The growl queue.
/// </param>
/// <param name="processPriority">
/// The process priority.
/// </param>
/// <param name="saveLogPath">
/// The save log path.
/// </param>
/// <param name="saveLogToSpecifiedPath">
/// The save log to specified path.
/// </param>
/// <param name="saveLogWithVideo">
/// The save log with video.
/// </param>
/// <param name="showCliForInGuiEncodeStatus">
/// The show cli for in gui encode status.
/// </param>
public static void SetupSettings(bool cli_minimized, string completionOption, bool disableDvdNav, bool enocdeStatusInGui,
bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,
bool saveLogWithVideo, bool showCliForInGuiEncodeStatus)
{
Properties.Settings.Default.cli_minimized = cli_minimized;
Properties.Settings.Default.CompletionOption = completionOption;
Properties.Settings.Default.disableDvdNav = disableDvdNav;
Properties.Settings.Default.enocdeStatusInGui = enocdeStatusInGui;
Properties.Settings.Default.growlEncode = growlEncode;
Properties.Settings.Default.growlQueue = growlQueue;
Properties.Settings.Default.processPriority = processPriority;
Properties.Settings.Default.saveLogPath = saveLogPath;
Properties.Settings.Default.saveLogToSpecifiedPath = saveLogToSpecifiedPath;
Properties.Settings.Default.saveLogWithVideo = saveLogWithVideo;
Properties.Settings.Default.showCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus;
Properties.Settings.Default.Save();
}
}
}
|