OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / EncodeQueue / Queue.cs
index f279a97..0372d90 100644 (file)
@@ -103,6 +103,19 @@ namespace Handbrake.EncodeQueue
         }\r
 \r
         /// <summary>\r
+        /// Retrieve a job from the queue\r
+        /// </summary>\r
+        /// <param name="index"></param>\r
+        /// <returns></returns>\r
+        public Job GetJob(int index)\r
+        {\r
+            if (queue.Count >= (index +1))\r
+                return queue[index];\r
+\r
+            return new Job();\r
+        }\r
+\r
+        /// <summary>\r
         /// Moves an item up one position in the queue.\r
         /// </summary>\r
         /// <param name="index">The zero-based location of the job in the queue.</param>\r