// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Encode Progess Status // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Services.Encode.Interfaces { using System; using HandBrake.ApplicationServices.Model; using EncodeCompletedEventArgs = HandBrakeWPF.Services.Encode.EventArgs.EncodeCompletedEventArgs; using EncodeProgressEventArgs = HandBrakeWPF.Services.Encode.EventArgs.EncodeProgressEventArgs; using EncodeTask = HandBrakeWPF.Services.Encode.Model.EncodeTask; /// /// Encode Progess Status /// /// /// The sender. /// /// /// The EncodeProgressEventArgs. /// public delegate void EncodeProgessStatus(object sender, EncodeProgressEventArgs e); /// /// Encode Progess Status /// /// /// The sender. /// /// /// The EncodeProgressEventArgs. /// public delegate void EncodeCompletedStatus(object sender, EncodeCompletedEventArgs e); /// /// The IEncode Interface /// public interface IEncode { /// /// Fires when a new Job starts /// event EventHandler EncodeStarted; /// /// Fires when a job finishes. /// event EncodeCompletedStatus EncodeCompleted; /// /// Encode process has progressed /// event EncodeProgessStatus EncodeStatusChanged; /// /// Gets a value indicating whether IsEncoding. /// bool IsEncoding { get; } /// /// Gets a value indicating whether is pasued. /// bool IsPasued { get; } /// /// Start with a LibHb EncodeJob Object /// /// /// The job. /// /// /// The configuration. /// void Start(EncodeTask job, HBConfiguration configuration); /// /// The pause. /// void Pause(); /// /// The resume. /// void Resume(); /// /// Kill the process /// void Stop(); } }