// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Encode Progress Status // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Services.Scan.Interfaces { using System; using System.Windows.Media.Imaging; using HandBrake.Interop.Model; using HandBrakeWPF.Services.Encode.Model; using HandBrakeWPF.Services.Scan.EventArgs; using HandBrakeWPF.Services.Scan.Model; /// /// Encode Progress Status /// /// /// The sender. /// /// /// The EncodeProgressEventArgs. /// public delegate void ScanProgessStatus(object sender, ScanProgressEventArgs e); /// /// Encode Progress Status /// /// /// The sender. /// /// /// The ScanCompletedEventArgs. /// public delegate void ScanCompletedStatus(object sender, ScanCompletedEventArgs e); /// /// The IScan Interface /// public interface IScan : IDisposable { /// /// Scan has Started /// event EventHandler ScanStarted; /// /// Scan has completed /// event ScanCompletedStatus ScanCompleted; /// /// Scan process has changed to a new title /// event ScanProgessStatus ScanStatusChanged; /// /// Gets a value indicating whether IsScanning. /// bool IsScanning { get; } /// /// Scan a Source Path. /// Title 0: scan all /// /// /// Path to the file to scan /// /// /// int title number. 0 for scan all /// /// /// The post Action. /// /// /// The configuraiton. /// void Scan(string sourcePath, int title, Action postAction, HBConfiguration configuration); /// /// Cancel the current scan. /// void Cancel(); /// /// Get a Preview image for the current job and preview number. /// /// /// The task. /// /// /// The preview. /// /// /// The configuration. /// /// /// The . /// BitmapImage GetPreview(EncodeTask task, int preview, HBConfiguration configuration); /// /// Kill the scan /// void Stop(); } }