diff options
author | sr55 <[email protected]> | 2011-08-15 13:05:50 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-08-15 13:05:50 +0000 |
commit | bb6b6007ea2111cac17ff5fff2f2105bb5b7e6e9 (patch) | |
tree | e952bee01b33c5bbb7dc600f724dcc10d25ad6aa /win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs | |
parent | 689e8917e82cae5d68341f5d618dba050ddfc0b9 (diff) |
WinGui: Clear all option on the queue.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4173 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs index da8ac5433..e2f81b7c5 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs @@ -198,6 +198,19 @@ namespace HandBrake.ApplicationServices.Services }
/// <summary>
+ /// Clear down all Queue Items
+ /// </summary>
+ public void Clear()
+ {
+ List<QueueTask> deleteList = this.queue.ToList();
+ foreach (QueueTask item in deleteList)
+ {
+ this.queue.Remove(item);
+ }
+ this.InvokeQueueChanged(EventArgs.Empty);
+ }
+
+ /// <summary>
/// Get the first job on the queue for processing.
/// This also removes the job from the Queue and sets the LastProcessedJob
/// </summary>
|