diff options
author | Scott <[email protected]> | 2015-09-26 21:29:34 +0100 |
---|---|---|
committer | Scott <[email protected]> | 2015-09-26 21:30:33 +0100 |
commit | c19ea798a23bfea7aba509309bef9168ece09836 (patch) | |
tree | 72c318fc971208bfcb0149bd98efef6a63f85926 /win/CS/HandBrake.ApplicationServices/Interop/EventArgs/ScanProgressEventArgs.cs | |
parent | a6cf5c5fd4b4c23ad3998ff270162768ce9ae6e7 (diff) |
App Services Modelling Tidy Up
Making event objects immutable. Making Libhb constructs internal to the
library. We should expose this with a managed api if we need it outside
the library. (Part 1)
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Interop/EventArgs/ScanProgressEventArgs.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Interop/EventArgs/ScanProgressEventArgs.cs | 47 |
1 files changed, 37 insertions, 10 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/EventArgs/ScanProgressEventArgs.cs b/win/CS/HandBrake.ApplicationServices/Interop/EventArgs/ScanProgressEventArgs.cs index 3928a53e6..78737943e 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/EventArgs/ScanProgressEventArgs.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/EventArgs/ScanProgressEventArgs.cs @@ -17,28 +17,55 @@ namespace HandBrake.ApplicationServices.Interop.EventArgs public class ScanProgressEventArgs : EventArgs
{
/// <summary>
- /// Gets or sets the total progress fraction for the scan.
+ /// Initializes a new instance of the <see cref="ScanProgressEventArgs"/> class.
/// </summary>
- public double Progress { get; set; }
+ /// <param name="progress">
+ /// The progress.
+ /// </param>
+ /// <param name="currentPreview">
+ /// The current preview.
+ /// </param>
+ /// <param name="previews">
+ /// The previews.
+ /// </param>
+ /// <param name="currentTitle">
+ /// The current title.
+ /// </param>
+ /// <param name="titles">
+ /// The titles.
+ /// </param>
+ public ScanProgressEventArgs(double progress, int currentPreview, int previews, int currentTitle, int titles)
+ {
+ this.Progress = progress;
+ this.CurrentPreview = currentPreview;
+ this.Previews = previews;
+ this.CurrentTitle = currentTitle;
+ this.Titles = titles;
+ }
/// <summary>
- /// Gets or sets the current preview being processed on the scan.
+ /// Gets the total progress fraction for the scan.
/// </summary>
- public int CurrentPreview { get; set; }
+ public double Progress { get; private set; }
/// <summary>
- /// Gets or sets the total number of previews to process.
+ /// Gets the current preview being processed on the scan.
/// </summary>
- public int Previews { get; set; }
+ public int CurrentPreview { get; private set; }
/// <summary>
- /// Gets or sets the current title being processed on the scan.
+ /// Gets the total number of previews to process.
/// </summary>
- public int CurrentTitle { get; set; }
+ public int Previews { get; private set; }
/// <summary>
- /// Gets or sets the total number of titles to process.
+ /// Gets the current title being processed on the scan.
/// </summary>
- public int Titles { get; set; }
+ public int CurrentTitle { get; private set; }
+
+ /// <summary>
+ /// Gets the total number of titles to process.
+ /// </summary>
+ public int Titles { get; private set; }
}
}
|