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