blob: d5807aff96b1b1bb04cdb40280470af25412538e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
/* IPresetService.cs $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.fr>.
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;
/// <summary>
/// The Preset Service Interface
/// </summary>
public interface IPresetService
{
/// <summary>
/// Gets a Collection of presets.
/// </summary>
ObservableCollection<Preset> Presets { get; }
/// <summary>
/// Add a new preset to the system
/// </summary>
/// <param name="preset">
/// A Preset to add
/// </param>
/// <returns>
/// True if added,
/// False if name already exists
/// </returns>
bool Add(Preset preset);
/// <summary>
/// Remove a preset with a given name from either the built in or user preset list.
/// </summary>
/// <param name="preset">
/// The Preset to remove
/// </param>
void Remove(Preset preset);
/// <summary>
/// Remove a group of presets by category
/// </summary>
/// <param name="category">
/// The Category to remove
/// </param>
void RemoveGroup(string category);
/// <summary>
/// Get a Preset
/// </summary>
/// <param name="name">
/// The name of the preset to get
/// </param>
/// <returns>
/// A Preset or null object
/// </returns>
Preset GetPreset(string name);
/// <summary>
/// Clear Built-in Presets
/// </summary>
void ClearBuiltIn();
/// <summary>
/// Clear all presets
/// </summary>
void ClearAll();
/// <summary>
/// Reads the CLI's CLI output format and load's them into the preset List Preset
/// </summary>
/// <param name="cliPath">
/// The Path to the CLI, leave blank for current folder.
/// </param>
void UpdateBuiltInPresets();
/// <summary>
/// Check if the built in Presets stored are not out of date.
/// Update them if they are.
/// </summary>
/// <returns>true if out of date</returns>
bool CheckIfPresetsAreOutOfDate();
/// <summary>
/// Check if the preset "name" exists in either Presets or UserPresets lists.
/// </summary>
/// <param name="name">Name of the preset</param>
/// <returns>True if found</returns>
bool CheckIfPresetExists(string name);
}
}
|