OSDN Git Service

MacGui: Remove Target Size as a rate control option as it doesn't really work correct...
[handbrake-jp/handbrake-jp-git.git] / win / C# / HandBrake.ApplicationServices / Init.cs
1 /*  Init.cs $\r
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
5 \r
6 namespace HandBrake.ApplicationServices\r
7 {\r
8     using System;\r
9     using System.Reflection;\r
10 \r
11     /// <summary>\r
12     /// Initialize ApplicationServices\r
13     /// </summary>\r
14     public class Init\r
15     {\r
16         /**\r
17          *  I really dislike this, Need to replace this sooner rather than later.\r
18          **/ \r
19 \r
20         /// <summary>\r
21         /// Setup the Settings used by the applicaiton with this library\r
22         /// </summary>\r
23         /// <param name="versionString">\r
24         /// The version / name of the application that's using this DLL.\r
25         /// </param>\r
26         /// <param name="instanceId">\r
27         /// The Instance ID\r
28         /// </param>\r
29         /// <param name="completionOption">\r
30         /// The completion option.\r
31         /// </param>\r
32         /// <param name="disableDvdNav">\r
33         /// The disable dvd nav.\r
34         /// </param>\r
35         /// <param name="growlEncode">\r
36         /// The growl encode.\r
37         /// </param>\r
38         /// <param name="growlQueue">\r
39         /// The growl queue.\r
40         /// </param>\r
41         /// <param name="processPriority">\r
42         /// The process priority.\r
43         /// </param>\r
44         /// <param name="saveLogPath">\r
45         /// The save log path.\r
46         /// </param>\r
47         /// <param name="saveLogToSpecifiedPath">\r
48         /// The save log to specified path.\r
49         /// </param>\r
50         /// <param name="saveLogWithVideo">\r
51         /// The save log with video.\r
52         /// </param>\r
53         /// <param name="showCliForInGuiEncodeStatus">\r
54         /// The show cli for in gui encode status.\r
55         /// </param>\r
56         /// <param name="preventSleep">\r
57         /// Prevent the system from sleeping\r
58         /// </param>\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
62         {\r
63             InstanceId = instanceId;\r
64             HandBrakeGuiVersionString = versionString;\r
65             Version = version;\r
66             Build = build;\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
77         }\r
78 \r
79         /// <summary>\r
80         /// Gets the Assembly version.\r
81         /// </summary>\r
82         /// <returns>\r
83         /// Version data\r
84         /// </returns>\r
85         public static Version AssemblyVersion()\r
86         {\r
87             return Assembly.GetExecutingAssembly().GetName().Version;\r
88         }\r
89 \r
90         /// <summary>\r
91         /// The instance ID used by the Main Applicaiton\r
92         /// </summary>\r
93         public static int InstanceId;\r
94 \r
95         /// <summary>\r
96         /// The Applicaiton that uses this DLL can pass in it's version string.\r
97         /// </summary>\r
98         public static string HandBrakeGuiVersionString;\r
99 \r
100         /// <summary>\r
101         /// HandBrakes Version or Svn revision\r
102         /// </summary>\r
103         public static string Version;\r
104 \r
105         /// <summary>\r
106         /// Handbrakes Build number\r
107         /// </summary>\r
108         public static int Build;\r
109 \r
110         /// <summary>\r
111         /// What to do when the encode completes.\r
112         /// </summary>\r
113         public static string CompletionOption;\r
114 \r
115         /// <summary>\r
116         /// Disable LibDvdNav\r
117         /// </summary>\r
118         public static bool DisableDvdNav;\r
119 \r
120         /// <summary>\r
121         /// Growl when an encode has finished.\r
122         /// </summary>\r
123         public static bool GrowlEncode;\r
124 \r
125         /// <summary>\r
126         /// Growl when a queue has finished.\r
127         /// </summary>\r
128         public static bool GrowlQueue;\r
129 \r
130         /// <summary>\r
131         /// The Process Priority for HandBrakeCLI\r
132         /// </summary>\r
133         public static string ProcessPriority;\r
134 \r
135         /// <summary>\r
136         /// Path to save log files to.\r
137         /// </summary>\r
138         public static string SaveLogPath;\r
139 \r
140         /// <summary>\r
141         /// Copy log files to the SaveLogPath\r
142         /// </summary>\r
143         public static bool SaveLogToSpecifiedPath;\r
144 \r
145         /// <summary>\r
146         /// Save a copy of the log files with the video\r
147         /// </summary>\r
148         public static bool SaveLogWithVideo;\r
149 \r
150         /// <summary>\r
151         /// Show the CLI window when encoding.\r
152         /// </summary>\r
153         public static bool ShowCliForInGuiEncodeStatus;\r
154 \r
155         /// <summary>\r
156         /// Prevent system sleep\r
157         /// </summary>\r
158         public static bool PreventSleep;\r
159     }\r
160 }\r