C# 클래스 HandBrake.ApplicationServices.Services.QueueManager

The Queue Manager. Thread Safe.
상속: IQueueManager
파일 보기 프로젝트 열기: golgol7777/HandBrakeWinSource

공개 메소드들

메소드 설명
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