summaryrefslogtreecommitdiffstats
path: root/win/C#/interop/Model/SourceSubtitle.cs
blob: b90212013ae9b0f778326fcbaf1d8a1ddf9a19e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SourceSubtitle.cs" company="HandBrake Project (http://handbrake.fr)">
//   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
//   Defines the SourceSubtitle type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace HandBrake.Interop.Model
{
    /// <summary>
    /// A Source Subtitle
    /// </summary>
    public class SourceSubtitle
    {
        /// <summary>
        /// Gets or sets the 1-based subtitle track number. 0 means foriegn audio search.
        /// </summary>
        public int TrackNumber { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the subtitle is Default.
        /// </summary>
        public bool Default { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the subtitle is Forced.
        /// </summary>
        public bool Forced { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the subtitle is BurnedIn.
        /// </summary>
        public bool BurnedIn { get; set; }

        /// <summary>
        /// Clone the Source Subtitle
        /// </summary>
        /// <returns>
        /// A Source Subtitle
        /// </returns>
        public SourceSubtitle Clone()
        {
            return new SourceSubtitle
            {
                TrackNumber = this.TrackNumber,
                Default = this.Default,
                Forced = this.Forced,
                BurnedIn = this.BurnedIn
            };
        }
    }
}