C# Класс HandBrake.ApplicationServices.Services.QueueManager

The Queue Manager. Thread Safe.
Наследование: IQueueManager
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( HandBrake.ApplicationServices.Model.QueueTask job ) : void

Add a job to the Queue. This method is Thread Safe.

BackupQueue ( string exportPath ) : void

Backup any changes to the queue file

CheckForDestinationPathDuplicates ( string destination ) : bool

Checks the current queue for an existing instance of the specified destination.

ClearCompleted ( ) : void

Clear down the Queue´s completed items

GetNextJobForProcessing ( ) : HandBrake.ApplicationServices.Model.QueueTask

Get the first job on the queue for processing. This also removes the job from the Queue and sets the LastProcessedJob

MoveDown ( int index ) : void

Moves an item down one position in the queue.

MoveUp ( int index ) : void

Moves an item up one position in the queue.

QueueManager ( int instanceId ) : System

Initializes a new instance of the QueueManager class.

Remove ( HandBrake.ApplicationServices.Model.QueueTask job ) : void

Remove a job from the Queue. This method is Thread Safe

ResetJobStatusToWaiting ( HandBrake.ApplicationServices.Model.QueueTask job ) : void

Reset a Queued Item from Error or Completed to Waiting

RestoreQueue ( string importPath ) : void

Restore a Queue from file or from the queue backup file.

WriteBatchScriptToFile ( string file ) : bool

Writes the current state of the queue in the form of a batch (.bat) file.

Приватные методы

Метод Описание
InvokeQueueChanged ( EventArgs e ) : void

Invoke the Queue Changed Event

Описание методов

Add() публичный Метод

Add a job to the Queue. This method is Thread Safe.
public Add ( HandBrake.ApplicationServices.Model.QueueTask job ) : void
job HandBrake.ApplicationServices.Model.QueueTask /// The encode Job object. ///
Результат void

BackupQueue() публичный Метод

Backup any changes to the queue file
public BackupQueue ( string exportPath ) : void
exportPath string /// If this is not null or empty, this will be used instead of the standard backup location. ///
Результат void

CheckForDestinationPathDuplicates() публичный Метод

Checks the current queue for an existing instance of the specified destination.
public CheckForDestinationPathDuplicates ( string destination ) : bool
destination string The destination of the encode.
Результат bool

ClearCompleted() публичный Метод

Clear down the Queue´s completed items
public ClearCompleted ( ) : void
Результат void

GetNextJobForProcessing() публичный Метод

Get the first job on the queue for processing. This also removes the job from the Queue and sets the LastProcessedJob
public GetNextJobForProcessing ( ) : HandBrake.ApplicationServices.Model.QueueTask
Результат HandBrake.ApplicationServices.Model.QueueTask

MoveDown() публичный Метод

Moves an item down one position in the queue.
public MoveDown ( int index ) : void
index int The zero-based location of the job in the queue.
Результат void

MoveUp() публичный Метод

Moves an item up one position in the queue.
public MoveUp ( int index ) : void
index int The zero-based location of the job in the queue.
Результат void

QueueManager() публичный Метод

Initializes a new instance of the QueueManager class.
public QueueManager ( int instanceId ) : System
instanceId int /// The instance Id. ///
Результат System

Remove() публичный Метод

Remove a job from the Queue. This method is Thread Safe
public Remove ( HandBrake.ApplicationServices.Model.QueueTask job ) : void
job HandBrake.ApplicationServices.Model.QueueTask /// The job. ///
Результат void

ResetJobStatusToWaiting() публичный Метод

Reset a Queued Item from Error or Completed to Waiting
public ResetJobStatusToWaiting ( HandBrake.ApplicationServices.Model.QueueTask job ) : void
job HandBrake.ApplicationServices.Model.QueueTask /// The job. ///
Результат void

RestoreQueue() публичный Метод

Restore a Queue from file or from the queue backup file.
public RestoreQueue ( string importPath ) : void
importPath string /// The import path. String.Empty or null will result in the default file being loaded. ///
Результат void

WriteBatchScriptToFile() публичный Метод

Writes the current state of the queue in the form of a batch (.bat) file.
public WriteBatchScriptToFile ( string file ) : bool
file string /// The location of the file to write the batch file to. ///
Результат bool