blob: 68fd266f07e595593a609b465088910ab9514bd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IEncodeInstance.cs" company="HandBrake Project (https://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// Defines the encode portions of the IHandBrakeInstance
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.Interop.Interfaces
{
using System;
using HandBrake.Interop.Interop.EventArgs;
using HandBrake.Interop.Interop.Json.Encode;
public interface IEncodeInstance
{
/// <summary>
/// Fires when an encode has completed.
/// </summary>
event EventHandler<EncodeCompletedEventArgs> EncodeCompleted;
/// <summary>
/// Fires for progress updates when encoding.
/// </summary>
event EventHandler<EncodeProgressEventArgs> EncodeProgress;
/// <summary>
/// Pauses the current encode.
/// </summary>
void PauseEncode();
/// <summary>
/// Resumes a paused encode.
/// </summary>
void ResumeEncode();
/// <summary>
/// Starts an encode with the given job.
/// </summary>
/// <param name="jobToStart">
/// The job to start.
/// </param>
void StartEncode(JsonEncodeObject jobToStart);
/// <summary>
/// Stops the current encode.
/// </summary>
void StopEncode();
}
}
|