C# Class HandBrake.ApplicationServices.Services.QueueProcessor

The HandBrake Queue
Inheritance: IQueueProcessor
Exibir arquivo Open project: golgol7777/HandBrakeWinSource

Public Methods

Method Description
Pause ( ) : void

Requests a pause of the encode queue.

QueueProcessor ( IQueueManager queueManager, IEncode encodeService ) : System

Initializes a new instance of the QueueProcessor class.

QueueProcessor ( int instanceId ) : System

Initializes a new instance of the QueueProcessor class. This call also initializes the Encode and QueueManager services

Start ( ) : void

Starts encoding the first job in the queue and continues encoding until all jobs have been encoded.

Private Methods

Method Description
EncodeServiceEncodeCompleted ( object sender, HandBrake.ApplicationServices.EventArgs.EncodeCompletedEventArgs e ) : void

After an encode is complete, move onto the next job.

Finish ( ) : void

Perform an action after an encode. e.g a shutdown, standby, restart etc.

InvokeJobProcessingStarted ( HandBrake.ApplicationServices.EventArgs.QueueProgressEventArgs e ) : void

Invoke the JobProcessingStarted event

InvokeQueueCompleted ( EventArgs e ) : void

Invoke the QueueCompleted event.

InvokeQueuePaused ( EventArgs e ) : void

Invoke the QueuePaused event

ProcessNextJob ( ) : void

Run through all the jobs on the queue.

SendToApplication ( string file ) : void

Send a file to a 3rd party application after encoding has completed.

Method Details

Pause() public method

Requests a pause of the encode queue.
public Pause ( ) : void
return void

QueueProcessor() public method

Initializes a new instance of the QueueProcessor class.
/// Services are not setup ///
public QueueProcessor ( IQueueManager queueManager, IEncode encodeService ) : System
queueManager IQueueManager /// The queue manager. ///
encodeService IEncode /// The encode Service. ///
return System

QueueProcessor() public method

Initializes a new instance of the QueueProcessor class. This call also initializes the Encode and QueueManager services
public QueueProcessor ( int instanceId ) : System
instanceId int /// The instance id. ///
return System

Start() public method

Starts encoding the first job in the queue and continues encoding until all jobs have been encoded.
public Start ( ) : void
return void