diff options
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs index cee9ad36f..245a3171d 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs @@ -5,18 +5,17 @@ namespace HandBrake.ApplicationServices.Model
{
- using System;
+ using HandBrake.ApplicationServices.Utilities;
/// <summary>
/// The QueueTask.
/// </summary>
public class QueueTask
{
- /*
- * TODO
- * - Update the Query property to generate the query from the EncodeTask object.
- * - Remove Sourcee, Destination and Title when they are no longer used.
- */
+ /// <summary>
+ /// The Encode task backing field.
+ /// </summary>
+ private EncodeTask task;
/// <summary>
/// Initializes a new instance of the <see cref="QueueTask"/> class.
@@ -72,9 +71,20 @@ namespace HandBrake.ApplicationServices.Model public QueueItemStatus Status { get; set; }
/// <summary>
- /// Gets or sets the Encode Task.
+ /// Gets the Encode Task.
/// </summary>
- public EncodeTask Task { get; set; }
+ public EncodeTask Task
+ {
+ get
+ {
+ if (this.task == null)
+ {
+ task = QueryParserUtility.Parse(this.Query);
+ }
+
+ return this.task;
+ }
+ }
/// <summary>
/// Gets a value indicating whether or not this instance is empty.
|