diff options
author | sr55 <[email protected]> | 2017-08-28 15:16:40 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2017-08-28 15:16:40 +0100 |
commit | ec19d8520ea39761053cccb2744931f0195b7bba (patch) | |
tree | c141be678fb13ee103cc2831737eaad40734b0c9 /win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeCompletedEventArgs.cs | |
parent | 871ffc2ed52c5480b4765a21d12e18173c1c0eac (diff) |
WinGui: Putting in some back-end infrastructure into the queue screen to support future features + some misc tidy up.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeCompletedEventArgs.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeCompletedEventArgs.cs | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeCompletedEventArgs.cs b/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeCompletedEventArgs.cs index ea334705d..1f2fe3bb0 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeCompletedEventArgs.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/EventArgs/EncodeCompletedEventArgs.cs @@ -10,12 +10,10 @@ namespace HandBrakeWPF.Services.Encode.EventArgs { using System; - using System.Runtime.Serialization; /// <summary> /// Encode Progress Event Args /// </summary> - [DataContract] public class EncodeCompletedEventArgs : EventArgs { /// <summary> @@ -33,36 +31,50 @@ namespace HandBrakeWPF.Services.Encode.EventArgs /// <param name="filename"> /// The filename. /// </param> - public EncodeCompletedEventArgs(bool sucessful, Exception exception, string errorInformation, string filename) + /// <param name="logPath"> + /// The path and filename of the log for this encode. + /// </param> + /// <param name="finalSizeInBytes"> + /// The final size of the file in bytes. + /// </param> + public EncodeCompletedEventArgs(bool sucessful, Exception exception, string errorInformation, string filename, string logPath, long finalSizeInBytes) { this.Successful = sucessful; this.Exception = exception; this.ErrorInformation = errorInformation; this.FileName = filename; + this.ActivityLogPath = logPath; + this.FinalFilesizeInBytes = finalSizeInBytes; } /// <summary> /// Gets or sets the file name. /// </summary> - [DataMember] - public string FileName { get; set; } + public string FileName { get; private set; } /// <summary> /// Gets or sets a value indicating whether Successful. /// </summary> - [DataMember] - public bool Successful { get; set; } + public bool Successful { get; private set; } /// <summary> /// Gets or sets Exception. /// </summary> - [DataMember] - public Exception Exception { get; set; } + public Exception Exception { get; private set; } /// <summary> /// Gets or sets ErrorInformation. /// </summary> - [DataMember] - public string ErrorInformation { get; set; } + public string ErrorInformation { get; private set; } + + /// <summary> + /// + /// </summary> + public string ActivityLogPath { get; private set; } + + /// <summary> + /// Final filesize in bytes + /// </summary> + public long FinalFilesizeInBytes { get; private set; } } } |