diff options
author | ritsuka <[email protected]> | 2014-12-03 19:16:55 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-03 19:16:55 +0000 |
commit | 82ea5dc61ad639506b4662a7bb7b573a4415a526 (patch) | |
tree | 451ae78f0f6a114fa5aa0a6ecbe4cce0dbb87b53 /macosx/HBJob.h | |
parent | 8590673b1f5e8a0440a9e7b0e879e7b73a94f9f7 (diff) |
MacGui: added a new HBTitle class to wraps the hb_tltle_t parts used by the mac gui. Small improvements to the HBCore related classes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6576 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBJob.h')
-rw-r--r-- | macosx/HBJob.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/macosx/HBJob.h b/macosx/HBJob.h index ebc6a8cbd..fc8bbb956 100644 --- a/macosx/HBJob.h +++ b/macosx/HBJob.h @@ -6,10 +6,10 @@ #import <Foundation/Foundation.h> -#include "hb.h" - @class HBPreset; +@class HBTitle; + @class HBVideo; @class HBPicture; @class HBFilters; @@ -17,15 +17,24 @@ @class HBAudioDefaults; @class HBSubtitlesDefaults; +typedef NS_ENUM(NSUInteger, HBJobStatus) { + HBJobStatusNone, + HBJobStatusWorking, + HBJobStatusCompleted, + HBJobStatusCanceled +}; + /** * HBJob */ @interface HBJob : NSObject <NSCoding, NSCopying> -- (instancetype)initWithTitle:(hb_title_t *)title url:(NSURL *)fileURL andPreset:(HBPreset *)preset; +- (instancetype)initWithTitle:(HBTitle *)title url:(NSURL *)fileURL andPreset:(HBPreset *)preset; + +@property (nonatomic, readonly) HBJobStatus status; // libhb -@property (nonatomic, readonly) hb_title_t *title; +@property (nonatomic, readonly) HBTitle *title; @property (nonatomic, readonly) NSURL *fileURL; // Old job format @@ -33,7 +42,6 @@ @property (nonatomic, readonly) NSAttributedString *jobDescription; // Job settings - @property (nonatomic, readwrite) int fileFormat; @property (nonatomic, readwrite) BOOL mp4LargeFile; @@ -48,9 +56,4 @@ @property (nonatomic, readonly) HBAudioDefaults *audioDefaults; @property (nonatomic, readonly) HBSubtitlesDefaults *subtitlesDefaults; -// File resources -@property (nonatomic, readonly) NSMutableArray *audioTracks; -@property (nonatomic, readonly) NSMutableArray *subtitlesTracks; -@property (nonatomic, readonly) NSMutableArray *chapters; - @end |