/* This file is part of AHD Subtitles Maker Professional
   A program can create and edit subtitles

   Copyright © Ala I Hadid 2009 - 2012

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AHD.MKV
{
    public struct MkvSubtitlesTrackInfo
    {
        string name;
        long defaultDuration;
        byte trackNumber;
        string language;
        string codecID;
        string codecPrivate;
        string biCompression;
        int contentCompressionAlgorithm;
        int contentEncodingType;

        public MkvSubtitlesTrackInfo(string name,
        long defaultDuration,
        byte trackNumber,
        string language,
        string codecID,
        string codecPrivate,
        string biCompression,
        int contentCompressionAlgorithm,
        int contentEncodingType)
        {
            this.name = name;
            this.defaultDuration = defaultDuration;
            this.trackNumber = trackNumber;
            this.language = language;
            this.codecID = codecID;
            this.codecPrivate = codecPrivate;
            this.biCompression = biCompression;
            this.contentCompressionAlgorithm = contentCompressionAlgorithm;
            this.contentEncodingType = contentEncodingType;
        }

        public string Name
        { get { return name; } set { name = value; } }
        public long DefaultDuration
        { get { return defaultDuration; } set { defaultDuration = value; } }
        public byte TrackNumber
        { get { return trackNumber; } set { trackNumber = value; } }
        public string Language
        { get { return language; } set { language = value; } }
        public string CodecID
        { get { return codecID; } set { codecID = value; } }
        public string CodecPrivate
        { get { return codecPrivate; } set { codecPrivate = value; } }
        public int ContentCompressionAlgorithm
        { get { return contentCompressionAlgorithm; } set { contentCompressionAlgorithm = value; } }
        public int ContentEncodingType
        { get { return contentEncodingType; } set { contentEncodingType = value; } }

        public override string ToString()
        {
            return name + " (" + language + ")";
        }
    }
}
