OSDN Git Service

WinGui:
[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 using Handbrake.Parsing;\r
9 \r
10 namespace Handbrake.EncodeQueue\r
11 {\r
12     public struct Job\r
13     {\r
14         /// <summary>\r
15         /// Gets or sets the job ID.\r
16         /// </summary>\r
17         public int Id { get; set; }\r
18 \r
19         /// <summary>\r
20         /// Gets or sets the query string.\r
21         /// </summary>\r
22         public string Query { get; set; }\r
23 \r
24         /// <summary>\r
25         /// record if this is a user or GUI generated query\r
26         /// </summary>\r
27         public Boolean CustomQuery { get; set; }\r
28 \r
29         /// <summary>\r
30         /// Gets or sets the source file of encoding.\r
31         /// </summary>\r
32         public string Source { get; set; }\r
33 \r
34         /// <summary>\r
35         /// Gets or sets the destination for the file to be encoded.\r
36         /// </summary>\r
37         public string Destination { get; set; }\r
38 \r
39         /// <summary>\r
40         /// Gets whether or not this instance is empty.\r
41         /// </summary>\r
42         public bool IsEmpty\r
43         {\r
44             get { return Id == 0 && string.IsNullOrEmpty(Query) && string.IsNullOrEmpty(Source) && string.IsNullOrEmpty(Destination); }\r
45         }\r
46     }\r
47 }