diff options
author | ritsuka <[email protected]> | 2014-12-23 10:23:59 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-23 10:23:59 +0000 |
commit | a66b692e29674de9c444fd54f0493d03b4900abc (patch) | |
tree | 1356eec981d0542ad6ca9087794e7cc52a09c664 /macosx/HBJob.h | |
parent | ee10e1fdb417c7f1047406522379c85c47143bfd (diff) |
MacGui: move the UI helper methods to new categories. Implement NSCoding in more classes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6643 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBJob.h')
-rw-r--r-- | macosx/HBJob.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/macosx/HBJob.h b/macosx/HBJob.h index 29b8dd89f..9a32c07c1 100644 --- a/macosx/HBJob.h +++ b/macosx/HBJob.h @@ -6,6 +6,7 @@ #import <Foundation/Foundation.h> +#import "HBPreset.h" #import "HBTitle.h" #import "HBRange.h" @@ -18,7 +19,8 @@ #include "hb.h" -@class HBPreset; +extern NSString *HBContainerChangedNotification; +extern NSString *keyContainerTag; typedef NS_ENUM(NSUInteger, HBJobState) { HBJobStateReady, @@ -33,7 +35,9 @@ typedef NS_ENUM(NSUInteger, HBJobState) { @interface HBJob : NSObject <NSCoding, NSCopying> - (instancetype)initWithTitle:(HBTitle *)title andPreset:(HBPreset *)preset; + - (void)applyPreset:(HBPreset *)preset; +- (void)applyCurrentSettingsToPreset:(NSMutableDictionary *)dict; /** * Current state of the job. @@ -42,9 +46,9 @@ typedef NS_ENUM(NSUInteger, HBJobState) { @property (nonatomic, readonly) HBTitle *title; -// urls +// Urls @property (nonatomic, readonly) NSURL *fileURL; -@property (nonatomic, readonly) NSURL *destURL; +@property (nonatomic, readwrite, copy) NSURL *destURL; // Libhb job @property (nonatomic, readonly) hb_job_t *hb_job; @@ -52,6 +56,7 @@ typedef NS_ENUM(NSUInteger, HBJobState) { // Job settings @property (nonatomic, readwrite) int container; +@property (nonatomic, readwrite) int angle; @property (nonatomic, readwrite) BOOL mp4HttpOptimize; @property (nonatomic, readwrite) BOOL mp4iPodCompatible; |