diff options
author | Damiano Galassi <[email protected]> | 2019-07-19 21:17:27 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-07-19 21:17:27 +0200 |
commit | 97734fff76d15a2da60f7956d82d463ac7ce6ece (patch) | |
tree | 11d568970a940eea0bb12dd8594773da39c830a4 /macosx/HBQueueController.h | |
parent | f7654c69cb5bad5dcdeaa7375e04327c5178d387 (diff) |
MacGui: refactor the queue and implement part of the new queue ui.
Diffstat (limited to 'macosx/HBQueueController.h')
-rw-r--r-- | macosx/HBQueueController.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/macosx/HBQueueController.h b/macosx/HBQueueController.h index 597b68a1d..722416cd1 100644 --- a/macosx/HBQueueController.h +++ b/macosx/HBQueueController.h @@ -10,36 +10,17 @@ NS_ASSUME_NONNULL_BEGIN @class HBAppDelegate; @class HBController; -@class HBOutputPanelController; -@class HBCore; -@class HBJob; +@class HBQueue; @interface HBQueueController : NSWindowController <NSToolbarDelegate, NSWindowDelegate> -- (instancetype)initWithURL:(NSURL *)queueURL; +- (instancetype)initWithQueue:(HBQueue *)queue; -/// The HBCore used for encoding. -@property (nonatomic, readonly) HBCore *core; +@property (nonatomic, readonly) HBQueue *queue; -@property (nonatomic, assign, nullable) HBController *controller; @property (nonatomic, weak, nullable) HBAppDelegate *delegate; -@property (nonatomic, readonly) NSUInteger count; -@property (nonatomic, readonly) NSUInteger pendingItemsCount; - -- (void)addJob:(HBJob *)item; -- (void)addJobsFromArray:(NSArray<HBJob *> *)items; - -- (BOOL)jobExistAtURL:(NSURL *)url; - -- (void)removeAllJobs; -- (void)removeCompletedJobs; - -- (void)setEncodingJobsAsPending; - -- (IBAction)rip:(id)sender; -- (IBAction)cancelRip:(id)sender; - +- (IBAction)toggleStartCancel:(id)sender; - (IBAction)togglePauseResume:(id)sender; @end |