blob: c8f15c3fd91915c4b1de69fea90f1134d2e7d91d (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/* 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
{
using System;
using System.Reflection;
/// <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>
/// <param name="preventSleep">
/// Prevent the system from sleeping
/// </param>
public static void SetupSettings(string completionOption, bool disableDvdNav,
bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,
bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep)
{
Properties.Settings.Default.CompletionOption = completionOption;
Properties.Settings.Default.disableDvdNav = disableDvdNav;
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.preventSleep = preventSleep;
Properties.Settings.Default.Save();
}
/// <summary>
/// Gets the Assembly version.
/// </summary>
/// <returns>
/// Version data
/// </returns>
public static Version AssemblyVersion()
{
return Assembly.GetExecutingAssembly().GetName().Version;
}
}
}
|