diff options
author | sr55 <[email protected]> | 2011-06-12 16:54:23 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-06-12 16:54:23 +0000 |
commit | 399ab292d7feddf5e83be866caafbaef634eca87 (patch) | |
tree | 519a29f631a5d07c25e4b01ef195005d166ddad6 /win/CS/HandBrake.Interop/HandBrakeInterop/Language.cs | |
parent | 191aad2ed1e77d8292f72ab7caf8996d117edd63 (diff) |
WinGui: Bring in the HandBrake Interop library written by RandomEngy.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4045 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Language.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Language.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Language.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Language.cs new file mode 100644 index 000000000..2bc4ff329 --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Language.cs @@ -0,0 +1,38 @@ +namespace HandBrake.Interop
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+
+ /// <summary>
+ /// Represents a language.
+ /// </summary>
+ public class Language
+ {
+ /// <summary>
+ /// Initializes a new instance of the Language class.
+ /// </summary>
+ /// <param name="code">The code for the langauge.</param>
+ public Language(string code)
+ {
+ this.Code = code;
+ }
+
+ /// <summary>
+ /// Gets the friendly name of the language.
+ /// </summary>
+ public string Name
+ {
+ get
+ {
+ return LanguageCodes.Decode(this.Code);
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets the language code.
+ /// </summary>
+ public string Code { get; set; }
+ }
+}
|