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 query string.\r
21         /// </summary>\r
22         public string Query { get; set; }\r
23 \r
24         /// <summary>\r
25         /// Gets or sets a value indicating whether if this is a user or GUI generated query\r
26         /// </summary>\r
27         public bool 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 a value indicating whether or not this instance is empty.\r
41         /// </summary>\r
42         public bool IsEmpty\r
43         {\r
44             get\r
45             {\r
46                 return this.Id == 0 && string.IsNullOrEmpty(this.Query) && string.IsNullOrEmpty(this.Source) &&\r
47                        string.IsNullOrEmpty(this.Destination);\r
48             }\r
49         }\r
50     }\r
51 }