diff options
author | Damiano Galassi <[email protected]> | 2019-02-07 19:11:51 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-02-07 19:11:51 +0100 |
commit | 5c52e252def1d72d072adc4cfdb2137a35705186 (patch) | |
tree | 8c34d9d5ea5acdc012155c8c14abd15b87cfefc6 /macosx/HBJob.h | |
parent | 618ee9eb98daba5d4f64cf26c04b6429d16faf97 (diff) |
MacGui: refactor some queue related properties out of HBJob to a new HBQueueItem class.
Diffstat (limited to 'macosx/HBJob.h')
-rw-r--r-- | macosx/HBJob.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/macosx/HBJob.h b/macosx/HBJob.h index e77dd346e..c5325f1b3 100644 --- a/macosx/HBJob.h +++ b/macosx/HBJob.h @@ -19,36 +19,20 @@ #import "HBSubtitles.h" #import "HBChapter.h" -#import "HBDistributedArray.h" - NS_ASSUME_NONNULL_BEGIN extern NSString *HBContainerChangedNotification; extern NSString *HBChaptersChangedNotification; /** - * A flag to indicate the job's state - */ -typedef NS_ENUM(NSUInteger, HBJobState){ - HBJobStateReady, - HBJobStateWorking, - HBJobStateCompleted, - HBJobStateCanceled, - HBJobStateFailed -}; - -/** * HBJob */ -@interface HBJob : NSObject <NSSecureCoding, NSCopying, HBPresetCoding, HBUniqueObject> +@interface HBJob : NSObject <NSSecureCoding, NSCopying, HBPresetCoding> - (instancetype)initWithTitle:(HBTitle *)title andPreset:(HBPreset *)preset; - (void)applyPreset:(HBPreset *)preset; -/// Current state of the job. -@property (nonatomic, readwrite) HBJobState state; - @property (nonatomic, readwrite, weak, nullable) HBTitle *title; @property (nonatomic, readonly) int titleIdx; |