OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / EncodeQueue / Job.cs
index e912fd6..6c87cd6 100644 (file)
@@ -1,11 +1,13 @@
 /*  QueueItem.cs $\r
-       \r
-          This file is part of the HandBrake source code.\r
-          Homepage: <http://handbrake.fr>.\r
-          It may be used under the terms of the GNU General Public License. */\r
+    This file is part of the HandBrake source code.\r
+    Homepage: <http://handbrake.fr>.\r
+    It may be used under the terms of the GNU General Public License. */\r
 \r
 namespace Handbrake.EncodeQueue\r
 {\r
+    /// <summary>\r
+    /// The job.\r
+    /// </summary>\r
     public struct Job\r
     {\r
         /// <summary>\r
@@ -19,6 +21,11 @@ namespace Handbrake.EncodeQueue
         public string Query { get; set; }\r
 \r
         /// <summary>\r
+        /// Gets or sets a value indicating whether if this is a user or GUI generated query\r
+        /// </summary>\r
+        public bool CustomQuery { get; set; }\r
+\r
+        /// <summary>\r
         /// Gets or sets the source file of encoding.\r
         /// </summary>\r
         public string Source { get; set; }\r
@@ -29,11 +36,15 @@ namespace Handbrake.EncodeQueue
         public string Destination { get; set; }\r
 \r
         /// <summary>\r
-        /// Gets whether or not this instance is empty.\r
+        /// Gets a value indicating whether or not this instance is empty.\r
         /// </summary>\r
         public bool IsEmpty\r
         {\r
-            get { return Id == 0 && string.IsNullOrEmpty(Query) && string.IsNullOrEmpty(Source) && string.IsNullOrEmpty(Destination); }\r
+            get\r
+            {\r
+                return this.Id == 0 && string.IsNullOrEmpty(this.Query) && string.IsNullOrEmpty(this.Source) &&\r
+                       string.IsNullOrEmpty(this.Destination);\r
+            }\r
         }\r
     }\r
 }
\ No newline at end of file