diff options
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs')
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs b/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs index 9a0681c2c..399afdec7 100644 --- a/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs +++ b/win/C#/HandBrake.ApplicationServices/Services/Interfaces/IEncode.cs @@ -7,6 +7,31 @@ namespace HandBrake.ApplicationServices.Services.Interfaces {
using System;
+ using HandBrake.ApplicationServices.EventArgs;
+ using HandBrake.ApplicationServices.Model;
+
+ /// <summary>
+ /// Encode Progess Status
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The EncodeProgressEventArgs.
+ /// </param>
+ public delegate void EncodeProgessStatus(object sender, EncodeProgressEventArgs e);
+
+ /// <summary>
+ /// Encode Progess Status
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The EncodeProgressEventArgs.
+ /// </param>
+ public delegate void EncodeCompletedStatus(object sender, EncodeCompletedEventArgs e);
+
/// <summary>
/// The IEncode Interface
/// </summary>
@@ -20,12 +45,12 @@ namespace HandBrake.ApplicationServices.Services.Interfaces /// <summary>
/// Fires when a CLI job finishes.
/// </summary>
- event EventHandler EncodeEnded;
+ event EncodeCompletedStatus EncodeCompleted;
/// <summary>
/// Encode process has progressed
/// </summary>
- event Encode.EncodeProgessStatus EncodeStatusChanged;
+ event EncodeProgessStatus EncodeStatusChanged;
/// <summary>
/// Gets a value indicating whether IsEncoding.
@@ -38,12 +63,15 @@ namespace HandBrake.ApplicationServices.Services.Interfaces string ActivityLog { get; }
/// <summary>
- /// Create a preview sample video
+ /// Start with a LibHb EncodeJob Object
/// </summary>
- /// <param name="query">
- /// The CLI Query
+ /// <param name="job">
+ /// The job.
+ /// </param>
+ /// <param name="enableLogging">
+ /// The enable Logging.
/// </param>
- void CreatePreviewSample(string query);
+ void Start(QueueTask job, bool enableLogging);
/// <summary>
/// Kill the CLI process
@@ -55,6 +83,6 @@ namespace HandBrake.ApplicationServices.Services.Interfaces /// NOTE: This will not work with a MinGW CLI
/// Note: http://www.cygwin.com/ml/cygwin/2006-03/msg00330.html
/// </summary>
- void SafelyClose();
+ void SafelyStop();
}
}
\ No newline at end of file |