diff options
author | sr55 <[email protected]> | 2011-03-13 16:44:49 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-03-13 16:44:49 +0000 |
commit | b6a5d4eba610711d15ed99dc5f2e9e126ce06086 (patch) | |
tree | e72eb5be161c3ac9b01bbc3b3efcd4ab8f91e06c /win/CS/HandBrake.ApplicationServices/Init.cs | |
parent | 38f64c238720fe0524f99b380fbb1a8c795a7586 (diff) |
Rename Direction C# to CS
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3846 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Init.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Init.cs | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Init.cs b/win/CS/HandBrake.ApplicationServices/Init.cs new file mode 100644 index 000000000..e51683ab8 --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/Init.cs @@ -0,0 +1,160 @@ +/* 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
+ {
+ /**
+ * I really dislike this, Need to replace this sooner rather than later.
+ **/
+
+ /// <summary>
+ /// Setup the Settings used by the applicaiton with this library
+ /// </summary>
+ /// <param name="versionString">
+ /// The version / name of the application that's using this DLL.
+ /// </param>
+ /// <param name="instanceId">
+ /// The Instance ID
+ /// </param>
+ /// <param name="completionOption">
+ /// The completion option.
+ /// </param>
+ /// <param name="disableDvdNav">
+ /// The disable dvd nav.
+ /// </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 versionString, string version, int build, int instanceId, string completionOption, bool disableDvdNav,
+ bool growlEncode, bool growlQueue, string processPriority, string saveLogPath, bool saveLogToSpecifiedPath,
+ bool saveLogWithVideo, bool showCliForInGuiEncodeStatus, bool preventSleep)
+ {
+ InstanceId = instanceId;
+ HandBrakeGuiVersionString = versionString;
+ Version = version;
+ Build = build;
+ CompletionOption = completionOption;
+ DisableDvdNav = disableDvdNav;
+ GrowlEncode = growlEncode;
+ GrowlQueue = growlQueue;
+ ProcessPriority = processPriority;
+ SaveLogPath = saveLogPath;
+ SaveLogToSpecifiedPath = saveLogToSpecifiedPath;
+ SaveLogWithVideo = saveLogWithVideo;
+ ShowCliForInGuiEncodeStatus = showCliForInGuiEncodeStatus;
+ PreventSleep = preventSleep;
+ }
+
+ /// <summary>
+ /// Gets the Assembly version.
+ /// </summary>
+ /// <returns>
+ /// Version data
+ /// </returns>
+ public static Version AssemblyVersion()
+ {
+ return Assembly.GetExecutingAssembly().GetName().Version;
+ }
+
+ /// <summary>
+ /// The instance ID used by the Main Applicaiton
+ /// </summary>
+ public static int InstanceId;
+
+ /// <summary>
+ /// The Applicaiton that uses this DLL can pass in it's version string.
+ /// </summary>
+ public static string HandBrakeGuiVersionString;
+
+ /// <summary>
+ /// HandBrakes Version or Svn revision
+ /// </summary>
+ public static string Version;
+
+ /// <summary>
+ /// Handbrakes Build number
+ /// </summary>
+ public static int Build;
+
+ /// <summary>
+ /// What to do when the encode completes.
+ /// </summary>
+ public static string CompletionOption;
+
+ /// <summary>
+ /// Disable LibDvdNav
+ /// </summary>
+ public static bool DisableDvdNav;
+
+ /// <summary>
+ /// Growl when an encode has finished.
+ /// </summary>
+ public static bool GrowlEncode;
+
+ /// <summary>
+ /// Growl when a queue has finished.
+ /// </summary>
+ public static bool GrowlQueue;
+
+ /// <summary>
+ /// The Process Priority for HandBrakeCLI
+ /// </summary>
+ public static string ProcessPriority;
+
+ /// <summary>
+ /// Path to save log files to.
+ /// </summary>
+ public static string SaveLogPath;
+
+ /// <summary>
+ /// Copy log files to the SaveLogPath
+ /// </summary>
+ public static bool SaveLogToSpecifiedPath;
+
+ /// <summary>
+ /// Save a copy of the log files with the video
+ /// </summary>
+ public static bool SaveLogWithVideo;
+
+ /// <summary>
+ /// Show the CLI window when encoding.
+ /// </summary>
+ public static bool ShowCliForInGuiEncodeStatus;
+
+ /// <summary>
+ /// Prevent system sleep
+ /// </summary>
+ public static bool PreventSleep;
+ }
+}
|