diff options
author | sr55 <[email protected]> | 2010-01-15 22:47:48 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-01-15 22:47:48 +0000 |
commit | a6a1746f4f521a01b5fe2fe82d09c1b4ffa82bdc (patch) | |
tree | 18bcad917821e185b03b71761f811914125c3e66 /win/C#/EncodeQueue/Queue.cs | |
parent | 5a0f5af93a11dea462fcea8cd4237b486f4a91bb (diff) |
WinGui:
- Send a job (which is not currently encoding) from the queue, back to the main window so that the user can alter the encode settings. Sending a job back causes a rescan of the source following by the current configuration being loaded back into the main gui window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3072 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/EncodeQueue/Queue.cs')
-rw-r--r-- | win/C#/EncodeQueue/Queue.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/win/C#/EncodeQueue/Queue.cs b/win/C#/EncodeQueue/Queue.cs index f279a974f..0372d90b7 100644 --- a/win/C#/EncodeQueue/Queue.cs +++ b/win/C#/EncodeQueue/Queue.cs @@ -103,6 +103,19 @@ namespace Handbrake.EncodeQueue }
/// <summary>
+ /// Retrieve a job from the queue
+ /// </summary>
+ /// <param name="index"></param>
+ /// <returns></returns>
+ public Job GetJob(int index)
+ {
+ if (queue.Count >= (index +1))
+ return queue[index];
+
+ return new Job();
+ }
+
+ /// <summary>
/// Moves an item up one position in the queue.
/// </summary>
/// <param name="index">The zero-based location of the job in the queue.</param>
|