/* QueueItem.cs $\r
- \r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
+ This file is part of the HandBrake source code.\r
+ Homepage: <http://handbrake.fr>.\r
+ It may be used under the terms of the GNU General Public License. */\r
\r
namespace Handbrake.EncodeQueue\r
{\r
- public class Job\r
+ /// <summary>\r
+ /// The job.\r
+ /// </summary>\r
+ public struct Job\r
{\r
/// <summary>\r
- /// Get or Set the job id.\r
+ /// Gets or sets the job ID.\r
/// </summary>\r
public int Id { get; set; }\r
\r
/// <summary>\r
- /// Get or Set the query string.\r
+ /// Gets or sets the query string.\r
/// </summary>\r
public string Query { get; set; }\r
\r
/// <summary>\r
- /// Get or set the source file of encoding\r
+ /// Gets or sets a value indicating whether if this is a user or GUI generated query\r
+ /// </summary>\r
+ public bool CustomQuery { get; set; }\r
+\r
+ /// <summary>\r
+ /// Gets or sets the source file of encoding.\r
/// </summary>\r
public string Source { get; set; }\r
\r
/// <summary>\r
- /// Get or set the destination for the file to be encoded.\r
+ /// Gets or sets the destination for the file to be encoded.\r
/// </summary>\r
public string Destination { get; set; }\r
+\r
+ /// <summary>\r
+ /// Gets a value indicating whether or not this instance is empty.\r
+ /// </summary>\r
+ public bool IsEmpty\r
+ {\r
+ get\r
+ {\r
+ return this.Id == 0 && string.IsNullOrEmpty(this.Query) && string.IsNullOrEmpty(this.Source) &&\r
+ string.IsNullOrEmpty(this.Destination);\r
+ }\r
+ }\r
}\r
}
\ No newline at end of file