OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / Model / 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 \r
7 namespace Handbrake.Model\r
8 {\r
9     /// <summary>\r
10     /// The job.\r
11     /// </summary>\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 selected Title.\r
21         /// </summary>\r
22         public int Title { get; set; }\r
23 \r
24         /// <summary>\r
25         /// Gets or sets the query string.\r
26         /// </summary>\r
27         public string Query { get; set; }\r
28 \r
29         /// <summary>\r
30         /// Gets or sets a value indicating whether if this is a user or GUI generated query\r
31         /// </summary>\r
32         public bool CustomQuery { get; set; }\r
33 \r
34         /// <summary>\r
35         /// Gets or sets the source file of encoding.\r
36         /// </summary>\r
37         public string Source { get; set; }\r
38 \r
39         /// <summary>\r
40         /// Gets or sets the destination for the file to be encoded.\r
41         /// </summary>\r
42         public string Destination { get; set; }\r
43 \r
44         /// <summary>\r
45         /// Gets a value indicating whether or not this instance is empty.\r
46         /// </summary>\r
47         public bool IsEmpty\r
48         {\r
49             get\r
50             {\r
51                 return this.Id == 0 && string.IsNullOrEmpty(this.Query) && string.IsNullOrEmpty(this.Source) &&\r
52                        string.IsNullOrEmpty(this.Destination);\r
53             }\r
54         }\r
55     }\r
56 }