From b6a5d4eba610711d15ed99dc5f2e9e126ce06086 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 13 Mar 2011 16:44:49 +0000 Subject: Rename Direction C# to CS git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3846 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Services/Interfaces/IPresetService.cs | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 win/CS/HandBrake.ApplicationServices/Services/Interfaces/IPresetService.cs (limited to 'win/CS/HandBrake.ApplicationServices/Services/Interfaces/IPresetService.cs') diff --git a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IPresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IPresetService.cs new file mode 100644 index 000000000..30d6b2f3a --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IPresetService.cs @@ -0,0 +1,93 @@ +/* IPresetService.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +namespace HandBrake.ApplicationServices.Services.Interfaces +{ + using System.Collections.ObjectModel; + + using HandBrake.ApplicationServices.Model; + + /// + /// The Preset Service Interface + /// + public interface IPresetService + { + /// + /// Gets or sets a Collection of presets. + /// + ObservableCollection Presets { get; set; } + + /// + /// Add a new preset to the system + /// + /// + /// A Preset to add + /// + /// + /// True if added, + /// False if name already exists + /// + bool Add(Preset preset); + + /// + /// Remove a preset with a given name from either the built in or user preset list. + /// + /// + /// The Preset to remove + /// + void Remove(Preset preset); + + /// + /// Remove a group of presets by category + /// + /// + /// The Category to remove + /// + void RemoveGroup(string category); + + /// + /// Get a Preset + /// + /// + /// The name of the preset to get + /// + /// + /// A Preset or null object + /// + Preset GetPreset(string name); + + /// + /// Clear Built-in Presets + /// + void ClearBuiltIn(); + + /// + /// Clear all presets + /// + void ClearAll(); + + /// + /// Reads the CLI's CLI output format and load's them into the preset List Preset + /// + /// + /// The Path to the CLI, leave blank for current folder. + /// + void UpdateBuiltInPresets(string cliPath); + + /// + /// Check if the built in Presets stored are not out of date. + /// Update them if they are. + /// + /// true if out of date + bool CheckIfPresetsAreOutOfDate(); + + /// + /// Check if the preset "name" exists in either Presets or UserPresets lists. + /// + /// Name of the preset + /// True if found + bool CheckIfPresetExists(string name); + } +} \ No newline at end of file -- cgit v1.2.3