diff options
author | Damiano Galassi <[email protected]> | 2020-09-11 18:02:23 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-09-11 18:02:23 +0200 |
commit | 3a90d6a6ad023ff1b066c2890315d51ee0ea0612 (patch) | |
tree | e9981f19c3f2a36cfc5e2a6a166cf52738830118 /macosx/HBQueueItem.h | |
parent | f6bb5723d1d4a23a3878628bb6fe146f536d1f8a (diff) |
MacGui: show a stop row in the queue when 'Stop after current job' option is selected.
Diffstat (limited to 'macosx/HBQueueItem.h')
-rw-r--r-- | macosx/HBQueueItem.h | 51 |
1 files changed, 12 insertions, 39 deletions
diff --git a/macosx/HBQueueItem.h b/macosx/HBQueueItem.h index 7f80ee36f..bd883c423 100644 --- a/macosx/HBQueueItem.h +++ b/macosx/HBQueueItem.h @@ -1,18 +1,15 @@ -/* HBQueueItem.m $ +/* HBQueueItem.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 <Foundation/Foundation.h> - -@import HandBrakeKit; +#import <Cocoa/Cocoa.h> NS_ASSUME_NONNULL_BEGIN -/** - * A flag to indicate the item's state - */ + +/// A flag to indicate the item's state typedef NS_ENUM(NSUInteger, HBQueueItemState) { HBQueueItemStateReady, HBQueueItemStateWorking, @@ -22,43 +19,19 @@ typedef NS_ENUM(NSUInteger, HBQueueItemState) { HBQueueItemStateRescanning }; -@interface HBQueueItem : NSObject<NSSecureCoding> - -- (instancetype)init NS_UNAVAILABLE; -- (instancetype)initWithJob:(HBJob *)job; +@protocol HBQueueItem <NSObject, NSSecureCoding> -@property (nonatomic, readonly) HBJob *job; - -/// Current state of the job. +/// Current state of the item. @property (nonatomic) HBQueueItemState state; -/// The file URL of the source. -@property (nonatomic, readonly) NSURL *fileURL; - -/// The directory URL at which the new file will be created. -@property (nonatomic, readonly, copy) NSURL *outputURL; - -/// The name of the new file that will be created. -@property (nonatomic, readonly, copy) NSString *outputFileName; +/// Whether the item has a file representation on disk or not. +@property (nonatomic, readonly) BOOL hasFileRepresentation; -/// The file URL at which the new file will be created. -@property (nonatomic, readonly, copy) NSURL *completeOutputURL; - -/// The file URL at which the new file will be created. -@property (nonatomic, copy, nullable) NSURL *activityLogURL; - -@property (nonatomic) NSTimeInterval encodeDuration; -@property (nonatomic) NSTimeInterval pauseDuration; - -@property (nonatomic, nullable) NSDate *startedDate; -@property (nonatomic, nullable) NSDate *endedDate; - -- (void)pausedAtDate:(NSDate *)date; -- (void)resumedAtDate:(NSDate *)date; - -@property (nonatomic, readonly) NSUInteger fileSize; +/// The title of the item. +@property (nonatomic, readonly) NSString *title; @property (nonatomic, readonly) NSAttributedString *attributedDescription; -@property (nonatomic, readonly, nullable) NSAttributedString *attributedStatistics; + +@property (nonatomic, readonly) NSImage *image; @end |