<Compile Include="Services\Encode\Model\Models\Video\VideoPreset.cs" />\r
<Compile Include="Services\Encode\Model\Models\Video\VideoProfile.cs" />\r
<Compile Include="Services\Encode\Model\Models\Video\VideoTune.cs" />\r
- <Compile Include="Services\Interfaces\IHbServiceCallback.cs" />\r
<Compile Include="Services\Scan\EventArgs\ScanCompletedEventArgs.cs" />\r
<Compile Include="Services\Scan\EventArgs\ScanProgressEventArgs.cs" />\r
<Compile Include="Utilities\Converters.cs" />\r
<Compile Include="Utilities\SystemInfo.cs" />\r
<Compile Include="Utilities\VersionHelper.cs" />\r
<Compile Include="Utilities\Win32.cs" />\r
- <Compile Include="Model\DriveInformation.cs" />\r
<Compile Include="Services\Encode\Model\Models\AllowedPassthru.cs" />\r
<Compile Include="Services\Encode\Model\Models\AudioTrack.cs" />\r
<Compile Include="Services\Encode\Model\Models\ChapterMarker.cs" />\r
<Compile Include="Services\Encode\Model\EncodeTask.cs" />\r
<Compile Include="Services\Encode\Model\Models\OutputFormat.cs" />\r
<Compile Include="Services\Encode\Model\Models\SubtitleTrack.cs" />\r
- <Compile Include="Model\PresetPictureSettingsMode.cs" />\r
<Compile Include="Model\QueueItemStatus.cs" />\r
<Compile Include="Model\QueueTask.cs" />\r
<Compile Include="Services\Encode\Model\Models\SubtitleType.cs" />\r
+++ /dev/null
-// --------------------------------------------------------------------------------------------------------------------\r
-// <copyright file="PresetPictureSettingsMode.cs" company="HandBrake Project (http://handbrake.fr)">\r
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
-// </copyright>\r
-// <summary>\r
-// Picture Settings Mode when adding presets\r
-// </summary>\r
-// --------------------------------------------------------------------------------------------------------------------\r
-\r
-namespace HandBrake.ApplicationServices.Model\r
-{\r
- using System.ComponentModel.DataAnnotations;\r
-\r
- /// <summary>\r
- /// Picture Settings Mode when adding presets\r
- /// </summary>\r
- public enum PresetPictureSettingsMode\r
- {\r
- [Display(Name = "None")]\r
- None = 0,\r
- [Display(Name = "Custom")]\r
- Custom = 1,\r
- [Display(Name = "Source Max Size")]\r
- SourceMaximum = 2,\r
- }\r
-}
\ No newline at end of file
+++ /dev/null
-// --------------------------------------------------------------------------------------------------------------------\r
-// <copyright file="IHbServiceCallback.cs" company="HandBrake Project (http://handbrake.fr)">\r
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
-// </copyright>\r
-// <summary>\r
-// HandBrake WCF Service Callbacks\r
-// </summary>\r
-// --------------------------------------------------------------------------------------------------------------------\r
-\r
-namespace HandBrake.ApplicationServices.Services.Interfaces\r
-{\r
- using System.ServiceModel;\r
-\r
- using HandBrake.ApplicationServices.Services.Encode.EventArgs;\r
-\r
- /// <summary>\r
- /// HandBrake WCF Service Callbacks\r
- /// </summary>\r
- [ServiceContract]\r
- public interface IHbServiceCallback\r
- {\r
- /// <summary>\r
- /// The encode progress callback.\r
- /// </summary>\r
- /// <param name="eventArgs">\r
- /// The event Args.\r
- /// </param>\r
- [OperationContract(IsOneWay = true)]\r
- void EncodeProgressCallback(EncodeProgressEventArgs eventArgs);\r
-\r
- /// <summary>\r
- /// The encode completed callback.\r
- /// </summary>\r
- /// <param name="eventArgs">\r
- /// The event Args.\r
- /// </param>\r
- [OperationContract(IsOneWay = true)]\r
- void EncodeCompletedCallback(EncodeCompletedEventArgs eventArgs);\r
-\r
- /// <summary>\r
- /// The encode started callback.\r
- /// </summary>\r
- [OperationContract(IsOneWay = true)]\r
- void EncodeStartedCallback();\r
- }\r
-}\r
using System.Text;\r
using System.Windows.Forms;\r
\r
- using HandBrake.ApplicationServices.Model;\r
-\r
/// <summary>\r
/// A Set of Static Utilites\r
/// </summary>\r
return logHeader;\r
}\r
\r
- /// <summary>\r
- /// Get a list of available DVD drives which are ready and contain DVD content.\r
- /// </summary>\r
- /// <returns>A List of Drives with their details</returns>\r
- public static List<DriveInformation> GetDrives()\r
- {\r
- var drives = new List<DriveInformation>();\r
- DriveInfo[] theCollectionOfDrives = DriveInfo.GetDrives();\r
- int id = 0;\r
- foreach (DriveInfo curDrive in theCollectionOfDrives)\r
- {\r
- if (curDrive.DriveType == DriveType.CDRom && curDrive.IsReady)\r
- {\r
- if (Directory.Exists(curDrive.RootDirectory + "VIDEO_TS") ||\r
- Directory.Exists(curDrive.RootDirectory + "BDMV"))\r
- {\r
- drives.Add(\r
- new DriveInformation\r
- {\r
- Id = id,\r
- VolumeLabel = curDrive.VolumeLabel,\r
- RootDirectory = curDrive.RootDirectory.ToString()\r
- });\r
- id++;\r
- }\r
- }\r
- }\r
-\r
- return drives;\r
- }\r
-\r
/// <summary>\r
/// Return the standard log format line of text for a given log message\r
/// </summary>\r
using System;\r
using System.Windows.Input;\r
\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
using HandBrake.ApplicationServices.Services.Scan.EventArgs;\r
using HandBrake.ApplicationServices.Services.Scan.Interfaces;\r
\r
<Compile Include="Extensions\StringExtensions.cs" />\r
<Compile Include="Model\Audio\AudioBehaviourModes.cs" />\r
<Compile Include="Model\Audio\AudioBehaviours.cs" />\r
+ <Compile Include="Model\DriveInformation.cs" />\r
<Compile Include="Model\Picture\PresetPictureSettingsMode.cs" />\r
<Compile Include="Model\Subtitles\SubtitleBehaviourModes.cs" />\r
<Compile Include="Model\Subtitles\SubtitleBehaviours.cs" />\r
<Compile Include="Utilities\AppcastReader.cs" />\r
<Compile Include="Utilities\DelayedActionProcessor.cs" />\r
<Compile Include="Utilities\DPIAwareness.cs" />\r
+ <Compile Include="Utilities\DriveUtilities.cs" />\r
<Compile Include="Utilities\HandBrakeApp.cs" />\r
<Compile Include="Services\Presets\Factories\PlistFactory.cs" />\r
<Compile Include="Utilities\PList.cs" />\r
\r
using Caliburn.Micro;\r
\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
-\r
using HandBrakeWPF.Services.Interfaces;\r
\r
/// <summary>\r
using System.Xml.Serialization;\r
\r
using HandBrake.ApplicationServices.Model;\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
using HandBrake.ApplicationServices.Utilities;\r
\r
using HandBrakeWPF.Services.Interfaces;\r
// </summary>\r
// --------------------------------------------------------------------------------------------------------------------\r
\r
-namespace HandBrake.ApplicationServices.Model\r
+namespace HandBrakeWPF.Model\r
{\r
/// <summary>\r
/// Information about a DVD drive\r
{\r
using HandBrake.ApplicationServices.Services.Encode.EventArgs;\r
using HandBrake.ApplicationServices.Services.Encode.Interfaces;\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
\r
using HandBrakeWPF.Services.Interfaces;\r
\r
--- /dev/null
+// --------------------------------------------------------------------------------------------------------------------\r
+// <copyright file="DriveUtilities.cs" company="HandBrake Project (http://handbrake.fr)">\r
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
+// </copyright>\r
+// <summary>\r
+// The drive utilities.\r
+// </summary>\r
+// --------------------------------------------------------------------------------------------------------------------\r
+\r
+namespace HandBrakeWPF.Utilities\r
+{\r
+ using System.Collections.Generic;\r
+ using System.IO;\r
+\r
+ using HandBrakeWPF.Model;\r
+\r
+ /// <summary>\r
+ /// The drive utilities.\r
+ /// </summary>\r
+ public class DriveUtilities\r
+ {\r
+ /// <summary>\r
+ /// Get a list of available DVD drives which are ready and contain DVD content.\r
+ /// </summary>\r
+ /// <returns>A List of Drives with their details</returns>\r
+ public static List<DriveInformation> GetDrives()\r
+ {\r
+ var drives = new List<DriveInformation>();\r
+ DriveInfo[] theCollectionOfDrives = DriveInfo.GetDrives();\r
+ int id = 0;\r
+ foreach (DriveInfo curDrive in theCollectionOfDrives)\r
+ {\r
+ if (curDrive.DriveType == DriveType.CDRom && curDrive.IsReady)\r
+ {\r
+ if (Directory.Exists(curDrive.RootDirectory + "VIDEO_TS") ||\r
+ Directory.Exists(curDrive.RootDirectory + "BDMV"))\r
+ {\r
+ drives.Add(\r
+ new DriveInformation\r
+ {\r
+ Id = id, \r
+ VolumeLabel = curDrive.VolumeLabel, \r
+ RootDirectory = curDrive.RootDirectory.ToString()\r
+ });\r
+ id++;\r
+ }\r
+ }\r
+ }\r
+\r
+ return drives;\r
+ }\r
+ }\r
+}\r
using System.Collections.Generic;\r
using System.Windows;\r
\r
- using HandBrake.ApplicationServices.Model;\r
- using HandBrake.ApplicationServices.Services;\r
using HandBrake.ApplicationServices.Services.Encode.Model;\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
using HandBrake.ApplicationServices.Services.Scan.Model;\r
using HandBrake.ApplicationServices.Utilities;\r
using HandBrake.ApplicationServices.Interop.Model.Encoding;\r
using HandBrakeWPF.Model.Audio;\r
using HandBrakeWPF.Model.Subtitles;\r
using HandBrakeWPF.Properties;\r
- using HandBrakeWPF.Services;\r
using HandBrakeWPF.Services.Interfaces;\r
using HandBrakeWPF.Services.Presets;\r
using HandBrakeWPF.Services.Presets.Interfaces;\r
using HandBrake.ApplicationServices.Services.Encode.Interfaces;\r
using HandBrake.ApplicationServices.Services.Encode.Model;\r
using HandBrake.ApplicationServices.Services.Encode.Model.Models;\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
using HandBrake.ApplicationServices.Services.Scan.EventArgs;\r
using HandBrake.ApplicationServices.Services.Scan.Interfaces;\r
using HandBrake.ApplicationServices.Services.Scan.Model;\r
// Check if we have a Folder, if so, check if it's a DVD / Bluray drive and get the label.\r
if (ScannedSource.ScanPath.EndsWith("\\"))\r
{\r
- foreach (DriveInformation item in GeneralUtilities.GetDrives())\r
+ foreach (DriveInformation item in DriveUtilities.GetDrives())\r
{\r
if (item.RootDirectory.Contains(this.ScannedSource.ScanPath.Replace("\\\\", "\\")))\r
{\r
if (this.showSourceSelection)\r
{\r
this.Drives.Clear();\r
- foreach (SourceMenuItem menuItem in from item in GeneralUtilities.GetDrives()\r
+ foreach (SourceMenuItem menuItem in from item in DriveUtilities.GetDrives()\r
let driveInformation = item\r
select new SourceMenuItem\r
{\r
\r
using Caliburn.Micro;\r
\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
-\r
using HandBrakeWPF.Model;\r
using HandBrakeWPF.Properties;\r
using HandBrakeWPF.Services.Interfaces;\r
using HandBrake.ApplicationServices.Services.Encode.Interfaces;\r
using HandBrake.ApplicationServices.Services.Encode.Model;\r
using HandBrake.ApplicationServices.Services.Encode.Model.Models;\r
- using HandBrake.ApplicationServices.Services.Interfaces;\r
using HandBrake.ApplicationServices.Services.Scan.Interfaces;\r
using HandBrake.ApplicationServices.Services.Scan.Model;\r
using HandBrake.ApplicationServices.Interop.Model.Encoding;\r