From d72b432378105f191bc7bf6f756bb7a7533dc79a Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 12 Feb 2013 20:37:59 +0000 Subject: WinGui: A Stylecop cleanup pass on Interop Library. Note, moved the Eventargs into their own package. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5248 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../EventArgs/EncodeCompletedEventArgs.cs | 24 ++++++++++++ .../EventArgs/EncodeProgressEventArgs.cs | 44 ++++++++++++++++++++++ .../EventArgs/MessageLoggedEventArgs.cs | 24 ++++++++++++ .../EventArgs/ScanProgressEventArgs.cs | 29 ++++++++++++++ 4 files changed, 121 insertions(+) create mode 100644 win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeCompletedEventArgs.cs create mode 100644 win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeProgressEventArgs.cs create mode 100644 win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/MessageLoggedEventArgs.cs create mode 100644 win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/ScanProgressEventArgs.cs (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs') diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeCompletedEventArgs.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeCompletedEventArgs.cs new file mode 100644 index 000000000..2169c6e4d --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeCompletedEventArgs.cs @@ -0,0 +1,24 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Defines the EncodeCompletedEventArgs type. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.EventArgs +{ + using System; + + /// + /// Encode Completed Event Args + /// + public class EncodeCompletedEventArgs : EventArgs + { + /// + /// Gets or sets a value indicating whether Error. + /// + public bool Error { get; set; } + } +} diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeProgressEventArgs.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeProgressEventArgs.cs new file mode 100644 index 000000000..9e2883e3b --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/EncodeProgressEventArgs.cs @@ -0,0 +1,44 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Defines the EncodeProgressEventArgs type. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.EventArgs +{ + using System; + + /// s + /// Encode Progress Event Args + /// + public class EncodeProgressEventArgs : EventArgs + { + /// + /// Gets or sets FractionComplete. + /// + public float FractionComplete { get; set; } + + /// + /// Gets or sets CurrentFrameRate. + /// + public float CurrentFrameRate { get; set; } + + /// + /// Gets or sets AverageFrameRate. + /// + public float AverageFrameRate { get; set; } + + /// + /// Gets or sets EstimatedTimeLeft. + /// + public TimeSpan EstimatedTimeLeft { get; set; } + + /// + /// Gets or sets the current encoding pass. (-1: subtitle scan, 1: first pass, 2: second pass) + /// + public int Pass { get; set; } + } +} diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/MessageLoggedEventArgs.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/MessageLoggedEventArgs.cs new file mode 100644 index 000000000..0649c52f4 --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/MessageLoggedEventArgs.cs @@ -0,0 +1,24 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Defines the MessageLoggedEventArgs type. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.EventArgs +{ + using System; + + /// + /// The Message Logged Event Args + /// + public class MessageLoggedEventArgs : EventArgs + { + /// + /// Gets or sets Message. + /// + public string Message { get; set; } + } +} diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/ScanProgressEventArgs.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/ScanProgressEventArgs.cs new file mode 100644 index 000000000..b342c8f12 --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/EventArgs/ScanProgressEventArgs.cs @@ -0,0 +1,29 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Defines the ScanProgressEventArgs type. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.EventArgs +{ + using System; + + /// + /// The Scan Progress Event Args + /// + public class ScanProgressEventArgs : EventArgs + { + /// + /// Gets or sets CurrentTitle. + /// + public int CurrentTitle { get; set; } + + /// + /// Gets or sets Titles. + /// + public int Titles { get; set; } + } +} -- cgit v1.2.3