From f40358afcf1cd4f3aa3301389b86db191c5cee2e Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 10 Jun 2018 13:38:13 +0100 Subject: WinGui: Split out the encode portion of IHandBrakeInstance into IEncodeInstance. API remains compatible. --- .../Interop/Interfaces/IEncodeInstance.cs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs (limited to 'win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs') diff --git a/win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs b/win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs new file mode 100644 index 000000000..68fd266f0 --- /dev/null +++ b/win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs @@ -0,0 +1,52 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Defines the encode portions of the IHandBrakeInstance +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.Interop.Interfaces +{ + using System; + + using HandBrake.Interop.Interop.EventArgs; + using HandBrake.Interop.Interop.Json.Encode; + + public interface IEncodeInstance + { + /// + /// Fires when an encode has completed. + /// + event EventHandler EncodeCompleted; + + /// + /// Fires for progress updates when encoding. + /// + event EventHandler EncodeProgress; + + /// + /// Pauses the current encode. + /// + void PauseEncode(); + + /// + /// Resumes a paused encode. + /// + void ResumeEncode(); + + /// + /// Starts an encode with the given job. + /// + /// + /// The job to start. + /// + void StartEncode(JsonEncodeObject jobToStart); + + /// + /// Stops the current encode. + /// + void StopEncode(); + } +} \ No newline at end of file -- cgit v1.2.3