summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreset.h
blob: 25c1e3b5dc9a5413a15cc4614a451d1c0a5d4ec0 (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
/*  HBPreset.h $

 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. */

#import <Cocoa/Cocoa.h>
#import "HBTreeNode.h"

/**
 *  HBPreset
 *  Stores a preset dictionary.
 *
 *  An instance of HBPreset can be an actual preset or a folder.
 */
@interface HBPreset : HBTreeNode <NSCopying>

- (instancetype)initWithName:(NSString *)title content:(NSDictionary *)content builtIn:(BOOL)builtIn;
- (instancetype)initWithFolderName:(NSString *)title builtIn:(BOOL)builtIn;

@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *presetDescription;
@property (nonatomic, retain) NSDictionary *content;

@property (nonatomic) BOOL isDefault;
@property (nonatomic, readonly) BOOL isBuiltIn;

@end