/* QueueTask.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 QueueTask. /// public class QueueTask { /// /// Initializes a new instance of the class. /// public QueueTask() { } /// /// Initializes a new instance of the class. /// /// /// The query. /// public QueueTask(string query) { this.Query = query; } /// /// 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 Status. /// public QueueItemStatus Status { 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); } } } }