diff options
author | sr55 <[email protected]> | 2010-07-17 22:25:01 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-07-17 22:25:01 +0000 |
commit | 561aa6ec3b4f018a4e76d1a57c7ffd6f0e7ded70 (patch) | |
tree | b320ca795db14f25259c8d01f5f03222b25a8db6 /win/C#/HandBrake.ApplicationServices/Init.cs | |
parent | 4cacc7fd60440725739f4560f14eadf40e335890 (diff) |
WinGui:
- Some tweaks to the Logging code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3445 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Init.cs')
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/Init.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Init.cs b/win/C#/HandBrake.ApplicationServices/Init.cs index 7f1e1ed72..d279a0b11 100644 --- a/win/C#/HandBrake.ApplicationServices/Init.cs +++ b/win/C#/HandBrake.ApplicationServices/Init.cs @@ -16,6 +16,9 @@ namespace HandBrake.ApplicationServices /// <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>
@@ -49,11 +52,12 @@ namespace HandBrake.ApplicationServices /// <param name="preventSleep">
/// Prevent the system from sleeping
/// </param>
- public static void SetupSettings(int instanceId, string completionOption, bool disableDvdNav,
+ public static void SetupSettings(string versionString, 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;
Properties.Settings.Default.CompletionOption = completionOption;
Properties.Settings.Default.disableDvdNav = disableDvdNav;
Properties.Settings.Default.growlEncode = growlEncode;
@@ -79,6 +83,14 @@ namespace HandBrake.ApplicationServices 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;
}
}
|