OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / EncodeQueue / Job.cs
1 /*  QueueItem.cs $\r
2     This file is part of the HandBrake source code.\r
3     Homepage: <http://handbrake.fr>.\r
4     It may be used under the terms of the GNU General Public License. */\r
5 \r
6 namespace Handbrake.EncodeQueue\r
7 {\r
8     /// <summary>\r
9     /// The job.\r
10     /// </summary>\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         /// Gets or sets a value indicating whether if this is a user or GUI generated query\r
25         /// </summary>\r
26         public bool 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 a value indicating whether or not this instance is empty.\r
40         /// </summary>\r
41         public bool IsEmpty\r
42         {\r
43             get\r
44             {\r
45                 return this.Id == 0 && string.IsNullOrEmpty(this.Query) && string.IsNullOrEmpty(this.Source) &&\r
46                        string.IsNullOrEmpty(this.Destination);\r
47             }\r
48         }\r
49     }\r
50 }