From c4008d7a492fa08449de6e19414a1acf101e53f5 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 26 Sep 2015 21:09:05 +0100 Subject: App Services Cleanup Contd Moving Exceptions and more utilities to the GUI project. --- win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs | 5 +++-- win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 4 +++- win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs | 6 ++---- win/CS/HandBrakeWPF/Services/Scan/LibScan.cs | 1 + win/CS/HandBrakeWPF/Services/UserSettingService.cs | 3 +-- 5 files changed, 10 insertions(+), 9 deletions(-) (limited to 'win/CS/HandBrakeWPF/Services') diff --git a/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs b/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs index 83ac7a083..4179ed3c7 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs @@ -14,15 +14,16 @@ namespace HandBrakeWPF.Services.Encode using System.IO; using System.Text; - using HandBrake.ApplicationServices.Exceptions; using HandBrake.ApplicationServices.Model; - using HandBrake.ApplicationServices.Utilities; + + using HandBrakeWPF.Utilities; using EncodeCompletedEventArgs = HandBrakeWPF.Services.Encode.EventArgs.EncodeCompletedEventArgs; using EncodeCompletedStatus = HandBrakeWPF.Services.Encode.Interfaces.EncodeCompletedStatus; using EncodeProgessStatus = HandBrakeWPF.Services.Encode.Interfaces.EncodeProgessStatus; using EncodeProgressEventArgs = HandBrakeWPF.Services.Encode.EventArgs.EncodeProgressEventArgs; using EncodeTask = HandBrakeWPF.Services.Encode.Model.EncodeTask; + using GeneralApplicationException = HandBrakeWPF.Exceptions.GeneralApplicationException; /// /// A Base Class for the Encode Services. diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index ce666f8aa..38299e5b1 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -18,7 +18,6 @@ namespace HandBrakeWPF.Services.Presets using System.Windows; using System.Xml.Serialization; - using HandBrake.ApplicationServices.Exceptions; using HandBrake.ApplicationServices.Interop; using HandBrake.ApplicationServices.Interop.Json.Presets; using HandBrake.ApplicationServices.Model; @@ -31,9 +30,12 @@ namespace HandBrakeWPF.Services.Presets using HandBrakeWPF.Services.Presets.Factories; using HandBrakeWPF.Services.Presets.Interfaces; using HandBrakeWPF.Services.Presets.Model; + using HandBrakeWPF.Utilities; using Newtonsoft.Json; + using GeneralApplicationException = HandBrakeWPF.Exceptions.GeneralApplicationException; + /// /// The preset service manages HandBrake's presets /// diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs index 4056633bb..94d9775d4 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs @@ -16,14 +16,12 @@ namespace HandBrakeWPF.Services.Queue using System.Linq; using System.Xml.Serialization; - using HandBrake.ApplicationServices.Exceptions; - using HandBrake.ApplicationServices.Model; - using HandBrake.ApplicationServices.Utilities; - using HandBrakeWPF.Services.Queue.Model; + using HandBrakeWPF.Utilities; using EncodeCompletedEventArgs = HandBrakeWPF.Services.Encode.EventArgs.EncodeCompletedEventArgs; using Execute = Caliburn.Micro.Execute; + using GeneralApplicationException = HandBrakeWPF.Exceptions.GeneralApplicationException; using IEncode = HandBrakeWPF.Services.Encode.Interfaces.IEncode; using QueueCompletedEventArgs = HandBrakeWPF.EventArgs.QueueCompletedEventArgs; using QueueProgressEventArgs = HandBrakeWPF.EventArgs.QueueProgressEventArgs; diff --git a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs index 2aae331d6..b43ec3ce3 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs @@ -31,6 +31,7 @@ namespace HandBrakeWPF.Services.Scan using HandBrakeWPF.Services.Scan.EventArgs; using HandBrakeWPF.Services.Scan.Interfaces; using HandBrakeWPF.Services.Scan.Model; + using HandBrakeWPF.Utilities; using Chapter = HandBrakeWPF.Services.Scan.Model.Chapter; using ScanProgressEventArgs = HandBrake.ApplicationServices.Interop.EventArgs.ScanProgressEventArgs; diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs index 6c5c6629b..8f0093009 100644 --- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs +++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs @@ -16,10 +16,9 @@ namespace HandBrakeWPF.Services using System.Reflection; using System.Xml.Serialization; - using HandBrake.ApplicationServices.Exceptions; - using HandBrakeWPF.Services.Interfaces; + using GeneralApplicationException = HandBrakeWPF.Exceptions.GeneralApplicationException; using SettingChangedEventArgs = HandBrakeWPF.EventArgs.SettingChangedEventArgs; /// -- cgit v1.2.3