From 49c029031755e78e10cc4c0d004dc93d42714566 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 9 Jan 2011 14:37:29 +0000 Subject: WinGui: - Continuing on with the Application Services re-factoring: * Added new QueueManager - Manages queue jobs, add, remove, up, down, save, etc * Queue Processor - Processes a Queue * New Models (Encode Task + associated model objects) Used for storing jobs as an object rather than query. This code isn't used yet, that is coming later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3738 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Model/QueueTask.cs | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 win/C#/HandBrake.ApplicationServices/Model/QueueTask.cs (limited to 'win/C#/HandBrake.ApplicationServices/Model/QueueTask.cs') diff --git a/win/C#/HandBrake.ApplicationServices/Model/QueueTask.cs b/win/C#/HandBrake.ApplicationServices/Model/QueueTask.cs new file mode 100644 index 000000000..3d648e586 --- /dev/null +++ b/win/C#/HandBrake.ApplicationServices/Model/QueueTask.cs @@ -0,0 +1,66 @@ +/* QueueItem.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.Model +{ + /// + /// The job. + /// + 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. + */ + + /// + /// Gets or sets the job ID. + /// + public int Id { get; set; } + + /// + /// Gets or sets Title. + /// + public int Title { get; set; } + + /// + /// Gets or sets Source. + /// + public string Source { get; set; } + + /// + /// Gets or sets Destination. + /// + public string Destination { get; set; } + + /// + /// Gets or sets the query string. + /// + public string Query { get; set; } + + /// + /// Gets or sets a value indicating whether if this is a user or GUI generated query + /// + public bool CustomQuery { get; set; } + + /// + /// Gets or sets the Encode Task. + /// + public EncodeTask Task { get; set; } + + /// + /// Gets a value indicating whether or not this instance is empty. + /// + public bool IsEmpty + { + get + { + return this.Id == 0 && string.IsNullOrEmpty(this.Query) && string.IsNullOrEmpty(this.Task.Source) && + string.IsNullOrEmpty(this.Task.Destination); + } + } + } +} \ No newline at end of file -- cgit v1.2.3