OSDN Git Service

7dfe7e518fb44956fb5ad904ab317e9672464285
[handbrake-jp/handbrake-jp-git.git] / win / C# / EncodeQueue / Job.cs
1 /*  QueueItem.cs $\r
2         \r
3            This file is part of the HandBrake source code.\r
4            Homepage: <http://handbrake.fr>.\r
5            It may be used under the terms of the GNU General Public License. */\r
6 \r
7 using System;\r
8 \r
9 namespace Handbrake.EncodeQueue\r
10 {\r
11     public struct Job\r
12     {\r
13         /// <summary>\r
14         /// Gets or sets the job ID.\r
15         /// </summary>\r
16         public int Id { get; set; }\r
17 \r
18         /// <summary>\r
19         /// Gets or sets the query string.\r
20         /// </summary>\r
21         public string Query { get; set; }\r
22 \r
23         /// <summary>\r
24         /// record if this is a user or GUI generated query\r
25         /// </summary>\r
26         public Boolean CustomQuery { get; set; }\r
27 \r
28         /// <summary>\r
29         /// Gets or sets the source file of encoding.\r
30         /// </summary>\r
31         public string Source { get; set; }\r
32 \r
33         /// <summary>\r
34         /// Gets or sets the destination for the file to be encoded.\r
35         /// </summary>\r
36         public string Destination { get; set; }\r
37 \r
38         /// <summary>\r
39         /// Gets whether or not this instance is empty.\r
40         /// </summary>\r
41         public bool IsEmpty\r
42         {\r
43             get { return Id == 0 && string.IsNullOrEmpty(Query) && string.IsNullOrEmpty(Source) && string.IsNullOrEmpty(Destination); }\r
44         }\r
45     }\r
46 }