summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-07-23 19:13:05 +0000
committersr55 <[email protected]>2011-07-23 19:13:05 +0000
commit0acf6155a9410cd1faf207b2cf77fc31f392e396 (patch)
tree9178cd036b455c39004448ee4fa3f9601fc1249d /win/CS/HandBrake.ApplicationServices/Services
parent80dc05bf339c0bbe492a6d20ccc013812c4582c2 (diff)
WinGui: Auto Selection of Audio and Subtitles - Patch by vendolis (Thanks!)
Adds finer grained control of the Automatic Audio and Subtitle selection feature. Adds the ability to select multiple languages. https://reviews.handbrake.fr/r/158/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4127 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Interfaces/IUserSettingService.cs12
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs19
2 files changed, 31 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IUserSettingService.cs b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IUserSettingService.cs
index 46ca316f4..9a96edab2 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IUserSettingService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IUserSettingService.cs
@@ -65,5 +65,17 @@ namespace HandBrake.ApplicationServices.Services.Interfaces
/// The settings value
/// </returns>
double GetUserSettingDouble(string name);
+
+ /// <summary>
+ /// Get an StringCollection type user setting
+ /// </summary>
+ /// <param name="name">
+ /// The setting name
+ /// </param>
+ /// <returns>
+ /// The settings value
+ /// </returns>
+ System.Collections.Specialized.StringCollection GetUserSettingStringCollection(string name);
+
}
} \ No newline at end of file
diff --git a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs
index 87d77324f..f6d6c55e2 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs
@@ -91,5 +91,24 @@ namespace HandBrake.ApplicationServices.Services
return value;
}
+
+ /// <summary>
+ /// Get an StringCollection type user setting
+ /// </summary>
+ /// <param name="name">
+ /// The setting name
+ /// </param>
+ /// <returns>
+ /// The settings value
+ /// </returns>
+ public System.Collections.Specialized.StringCollection GetUserSettingStringCollection(string name)
+ {
+ System.Collections.Specialized.StringCollection value;
+
+ value = (System.Collections.Specialized.StringCollection) Properties.Settings.Default[name];
+
+ return value;
+ }
+
}
}