// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Encode Progress Event Args // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrake.ApplicationServices.EventArgs { using System; using System.Runtime.Serialization; using HandBrake.ApplicationServices.Model; /// /// Encode Progress Event Args /// [DataContractAttribute] public class EncodeCompletedEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// /// The sucessful. /// /// /// The exception. /// /// /// The error information. /// /// /// The filename. /// public EncodeCompletedEventArgs(bool sucessful, Exception exception, string errorInformation, string filename) { this.Successful = sucessful; this.Exception = exception; this.ErrorInformation = errorInformation; this.FileName = filename; } /// /// Gets or sets the file name. /// [DataMember] public string FileName { get; set; } /// /// Gets or sets a value indicating whether Successful. /// [DataMember] public bool Successful { get; set; } /// /// Gets or sets Exception. /// [DataMember] public Exception Exception { get; set; } /// /// Gets or sets ErrorInformation. /// [DataMember] public string ErrorInformation { get; set; } } }