summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-09-21 17:47:12 +0000
committersr55 <[email protected]>2013-09-21 17:47:12 +0000
commit515f8070a43f25de58019314bf6893c12a478c76 (patch)
tree7829f0ee63671b77a900c2614e694057110fc2c8 /win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs
parentbb3aae9dd06271ab7b18a2d55fec14c97b76e9b0 (diff)
WinGui: Fix up libhb encode feature.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5790 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs30
1 files changed, 28 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs b/win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs
index 7fc3c76ff..1fe1a448e 100644
--- a/win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs
+++ b/win/CS/HandBrakeWPF/Services/EncodeServiceWrapper.cs
@@ -18,7 +18,6 @@ namespace HandBrakeWPF.Services
using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Services;
using HandBrake.ApplicationServices.Services.Interfaces;
- using HandBrake.Interop;
using EncodeCompletedEventArgs = HandBrake.ApplicationServices.EventArgs.EncodeCompletedEventArgs;
using EncodeProgressEventArgs = HandBrake.ApplicationServices.EventArgs.EncodeProgressEventArgs;
@@ -64,7 +63,7 @@ namespace HandBrakeWPF.Services
}
else
{
- this.encodeService = new LibEncode(userSettingService, new HandBrakeInstance());
+ this.encodeService = new LibEncode(userSettingService);
}
}
catch (Exception exc)
@@ -133,6 +132,17 @@ namespace HandBrakeWPF.Services
}
/// <summary>
+ /// Gets a value indicating whether can pause.
+ /// </summary>
+ public bool CanPause
+ {
+ get
+ {
+ return this.encodeService.CanPause;
+ }
+ }
+
+ /// <summary>
/// Gets a value indicating whether IsEncoding.
/// </summary>
public bool IsEncoding
@@ -186,6 +196,22 @@ namespace HandBrakeWPF.Services
}
/// <summary>
+ /// The pause.
+ /// </summary>
+ public void Pause()
+ {
+ this.encodeService.Pause();
+ }
+
+ /// <summary>
+ /// The resume.
+ /// </summary>
+ public void Resume()
+ {
+ this.encodeService.Resume();
+ }
+
+ /// <summary>
/// Kill the CLI process
/// </summary>
public void Stop()