// --------------------------------------------------------------------------------------------------------------------
//
// 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.Interfaces
{
using System;
using HandBrake.ApplicationServices.EventArgs;
using HandBrake.ApplicationServices.Parsing;
///
/// 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 preview Count.
///
///
/// The post Action.
///
void Scan(string sourcePath, int title, int previewCount, Action postAction);
///
/// Kill the scan
///
void Stop();
///
/// Take a Scan Log file, and process it as if it were from the CLI.
///
///
/// The path to the log file.
///
void DebugScanLog(string path);
///
/// Shutdown the service.
///
void Shutdown();
}
}