diff options
author | sr55 <[email protected]> | 2010-02-26 22:49:18 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-02-26 22:49:18 +0000 |
commit | 9e08a2bc781b020f15d477ae2d89da669d4743b1 (patch) | |
tree | 55792d64908f1930385ed9416eab392635bcfce5 /win/C#/Model | |
parent | 16f7933765671ab563d17620b071cdaf99d98bbf (diff) |
WinGui:
- Fixed some issues with the DirectRun() Code and implemented some standard input / error readers received events / handlers
- Moved some code around. EncodeQueue is now a services layer
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3141 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Model')
-rw-r--r-- | win/C#/Model/Job.cs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/win/C#/Model/Job.cs b/win/C#/Model/Job.cs new file mode 100644 index 000000000..bd8888e58 --- /dev/null +++ b/win/C#/Model/Job.cs @@ -0,0 +1,51 @@ +/* QueueItem.cs $
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
+
+
+namespace Handbrake.Model
+{
+ /// <summary>
+ /// The job.
+ /// </summary>
+ public struct Job
+ {
+ /// <summary>
+ /// Gets or sets the job ID.
+ /// </summary>
+ public int Id { get; set; }
+
+ /// <summary>
+ /// Gets or sets the query string.
+ /// </summary>
+ public string Query { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether if this is a user or GUI generated query
+ /// </summary>
+ public bool CustomQuery { get; set; }
+
+ /// <summary>
+ /// Gets or sets the source file of encoding.
+ /// </summary>
+ public string Source { get; set; }
+
+ /// <summary>
+ /// Gets or sets the destination for the file to be encoded.
+ /// </summary>
+ public string Destination { get; set; }
+
+ /// <summary>
+ /// Gets a value indicating whether or not this instance is empty.
+ /// </summary>
+ public bool IsEmpty
+ {
+ get
+ {
+ return this.Id == 0 && string.IsNullOrEmpty(this.Query) && string.IsNullOrEmpty(this.Source) &&
+ string.IsNullOrEmpty(this.Destination);
+ }
+ }
+ }
+}
\ No newline at end of file |