Homepage: <http://handbrake.fr>.\r
It may be used under the terms of the GNU General Public License. */\r
\r
+using System;\r
+\r
namespace Handbrake.EncodeQueue\r
{\r
- public class Job\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
+ /// record if this is a user or GUI generated query\r
+ /// </summary>\r
+ public Boolean 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 whether or not this instance is empty.\r
+ /// </summary>\r
+ public bool IsEmpty\r
+ {\r
+ get { return Id == 0 && string.IsNullOrEmpty(Query) && string.IsNullOrEmpty(Source) && string.IsNullOrEmpty(Destination); }\r
+ }\r
}\r
}
\ No newline at end of file