// -------------------------------------------------------------------------------------------------------------------- // // 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 HandBrake.ApplicationServices.Services.Scan.Interfaces { using System; using System.Windows.Media.Imaging; using HandBrake.ApplicationServices.Model; using HandBrake.ApplicationServices.Services.Encode.Model; using HandBrake.ApplicationServices.Services.Scan.EventArgs; using HandBrake.ApplicationServices.Services.Scan.Model; /// /// Encode Progess Status /// /// /// The sender. /// /// /// The EncodeProgressEventArgs. /// public delegate void ScanProgessStatus(object sender, ScanProgressEventArgs e); /// /// Encode Progess Status /// /// /// The sender. /// /// /// The ScanCompletedEventArgs. /// public delegate void ScanCompletedStatus(object sender, ScanCompletedEventArgs e); /// /// The IScan Interface /// public interface IScan { /// /// Scan has Started /// event EventHandler ScanStared; /// /// 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; } /// /// Gets the Souce Data. /// Source SouceData { get; } /// /// Gets ActivityLog. /// string ActivityLog { 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); /// /// Get a Preview image for the current job and preview number. /// /// /// The task. /// /// /// The preview. /// /// /// The . /// BitmapImage GetPreview(EncodeTask task, int preview); /// /// Kill the scan /// void Stop(); } }