C# Class HandBrake.ApplicationServices.Services.QueueProcessor

The HandBrake Queue
Inheritance: IQueueProcessor
Afficher le fichier Open project: golgol7777/HandBrakeWinSource

Méthodes publiques

Méthode 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

Méthode 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 méthode

Requests a pause of the encode queue.
public Pause ( ) : void
Résultat void

QueueProcessor() public méthode

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. ///
Résultat System

QueueProcessor() public méthode

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. ///
Résultat System

Start() public méthode

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