summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueJobItem.h
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBQueueJobItem.h')
-rw-r--r--macosx/HBQueueJobItem.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/macosx/HBQueueJobItem.h b/macosx/HBQueueJobItem.h
new file mode 100644
index 000000000..813b197d1
--- /dev/null
+++ b/macosx/HBQueueJobItem.h
@@ -0,0 +1,54 @@
+/* HBQueueJobItem.m $
+
+ 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 <Cocoa/Cocoa.h>
+#import "HBQueueItem.h"
+
+@import HandBrakeKit;
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface HBQueueJobItem : NSObject<HBQueueItem>
+
+- (instancetype)init NS_UNAVAILABLE;
+- (instancetype)initWithJob:(HBJob *)job;
+
+@property (nonatomic, readonly) HBJob *job;
+
+/// Current state of the job.
+@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;
+
+/// 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;
+@property (nonatomic, readonly) NSAttributedString *attributedDescription;
+@property (nonatomic, readonly, nullable) NSAttributedString *attributedStatistics;
+
+@end
+
+NS_ASSUME_NONNULL_END