summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob.h
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBJob.h')
-rw-r--r--macosx/HBJob.h23
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