diff options
author | sr55 <[email protected]> | 2011-08-07 21:31:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-08-07 21:31:14 +0000 |
commit | 69d24d74273fde9bb4c790755c95575b4e6c3c0c (patch) | |
tree | a90422cd4aec2fc313af7eb8815e95bf6343abbc /win/CS/HandBrake.ApplicationServices/Model | |
parent | db6a78037d052a0e0b2236bafef2799781930ce7 (diff) |
WinGui: Change the Queue to work in the same way as the Mac/Lin Queue. Retain Completed jobs and mark them as such.
- Added option to clear completed jobs.
- Added option to re-encode a completed/errored job.
- In-progress/Waiting jobs get saved into queue recovery.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4161 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Model')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/QueueItemStatus.cs | 30 | ||||
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs | 17 |
2 files changed, 47 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/QueueItemStatus.cs b/win/CS/HandBrake.ApplicationServices/Model/QueueItemStatus.cs new file mode 100644 index 000000000..774d0a788 --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/Model/QueueItemStatus.cs @@ -0,0 +1,30 @@ +/* QueueItemStatus.cs $
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
+
+namespace HandBrake.ApplicationServices.Model
+{
+ using System.ComponentModel;
+
+ using HandBrake.ApplicationServices.Converters;
+
+ /// <summary>
+ /// Queue Item Status
+ /// </summary>
+ [TypeConverter(typeof(EnumToDescConveter))]
+ public enum QueueItemStatus
+ {
+ [Description("Waiting")]
+ Waiting = 0,
+
+ [Description("In Progress")]
+ InProgress,
+
+ [Description("Completed")]
+ Completed,
+
+ [Description("Error")]
+ Error,
+ }
+}
diff --git a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs index 83948a1f3..aa71a2819 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs @@ -5,6 +5,8 @@ namespace HandBrake.ApplicationServices.Model
{
+ using System;
+
/// <summary>
/// The QueueTask.
/// </summary>
@@ -65,6 +67,21 @@ namespace HandBrake.ApplicationServices.Model public bool CustomQuery { get; set; }
/// <summary>
+ /// Gets or sets Status.
+ /// </summary>
+ public QueueItemStatus Status { get; set; }
+
+ /// <summary>
+ /// Gets or sets StartTime.
+ /// </summary>
+ public DateTime StartTime { get; set; }
+
+ /// <summary>
+ /// Gets or sets ElaspedEncodeTime.
+ /// </summary>
+ public TimeSpan ElaspedEncodeTime { get; set; }
+
+ /// <summary>
/// Gets or sets the Encode Task.
/// </summary>
public EncodeTask Task { get; set; }
|