summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Model
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-08-07 21:31:14 +0000
committersr55 <[email protected]>2011-08-07 21:31:14 +0000
commit69d24d74273fde9bb4c790755c95575b4e6c3c0c (patch)
treea90422cd4aec2fc313af7eb8815e95bf6343abbc /win/CS/HandBrake.ApplicationServices/Model
parentdb6a78037d052a0e0b2236bafef2799781930ce7 (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.cs30
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs17
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; }