diff options
author | sr55 <[email protected]> | 2009-07-15 11:03:54 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-07-15 11:03:54 +0000 |
commit | 742df70f4ae59aba07e2b094c2f9f4a9efc01a7c (patch) | |
tree | 64df63f584693271f82b4370086ff206efe7bd5d /win/C#/EncodeQueue/Job.cs | |
parent | f5108ef3ae828197e68cb2f03f37ef90679f02c5 (diff) |
WinGui:
- The options panel (frmOptions) is now completely wrapped in TableLayoutPanels.
- The rest of the GUI has been changed to Tahoma, 8pt font.
- QueueHandler and it's related classes have been refactored and documented.
- new option has been added that prompts the user before encoding when the query under the "Query Editor" tab does not match the GUI settings. It can be disabled in the options window.
- A bug where "last_encode_log.txt" failed to be read has been fixed that was caused by exiting the CLI window shortly after starting the encode.
Thansk to darkassassin
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2693 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/EncodeQueue/Job.cs')
-rw-r--r-- | win/C#/EncodeQueue/Job.cs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/win/C#/EncodeQueue/Job.cs b/win/C#/EncodeQueue/Job.cs index 291ef400d..e912fd65a 100644 --- a/win/C#/EncodeQueue/Job.cs +++ b/win/C#/EncodeQueue/Job.cs @@ -6,26 +6,34 @@ namespace Handbrake.EncodeQueue
{
- public class Job
+ public struct Job
{
/// <summary>
- /// Get or Set the job id.
+ /// Gets or sets the job ID.
/// </summary>
public int Id { get; set; }
/// <summary>
- /// Get or Set the query string.
+ /// Gets or sets the query string.
/// </summary>
public string Query { get; set; }
/// <summary>
- /// Get or set the source file of encoding
+ /// Gets or sets the source file of encoding.
/// </summary>
public string Source { get; set; }
/// <summary>
- /// Get or set the destination for the file to be encoded.
+ /// Gets or sets the destination for the file to be encoded.
/// </summary>
public string Destination { get; set; }
+
+ /// <summary>
+ /// Gets whether or not this instance is empty.
+ /// </summary>
+ public bool IsEmpty
+ {
+ get { return Id == 0 && string.IsNullOrEmpty(Query) && string.IsNullOrEmpty(Source) && string.IsNullOrEmpty(Destination); }
+ }
}
}
\ No newline at end of file |