summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-19 08:48:18 +0000
committerritsuka <[email protected]>2015-01-19 08:48:18 +0000
commitf69f4e15cf1a4e010aef3f1a77c768425562cc67 (patch)
tree711364237b9eef8a3e8fa90f2ace9d8b02c82a0e /macosx/HBQueueController.h
parent889e86edd3289486cd2cd1d6abc4e21296983dad (diff)
MacGui: moved the queue code from HBController to HBQueueController, reworked the way the queue synchronise itself between multiple instances to be more resilient (hopefully). Modified HBCore to take callback blocks instead of notifications.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6770 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.h')
-rw-r--r--macosx/HBQueueController.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/macosx/HBQueueController.h b/macosx/HBQueueController.h
index 41f76698b..87d114df5 100644
--- a/macosx/HBQueueController.h
+++ b/macosx/HBQueueController.h
@@ -5,19 +5,34 @@
It may be used under the terms of the GNU General Public License. */
#import <Cocoa/Cocoa.h>
+#import <Growl/Growl.h>
@class HBController;
+@class HBOutputPanelController;
@class HBCore;
+@class HBJob;
-@interface HBQueueController : NSWindowController <NSToolbarDelegate, NSWindowDelegate>
+@interface HBQueueController : NSWindowController <NSToolbarDelegate, NSWindowDelegate, GrowlApplicationBridgeDelegate>
-- (void)setPidNum: (int)myPidnum;
-- (void)setCore: (HBCore *)core;
-- (void)setHBController: (HBController *)controller;
+/// The HBCore used for encoding.
+@property (nonatomic, readonly) HBCore *core;
-- (void)setQueueArray: (NSMutableArray *)QueueFileArray;
-- (void)setQueueStatusString: (NSString *)statusString;
+@property (nonatomic, assign) HBController *controller;
+@property (nonatomic, assign) HBOutputPanelController *outputPanel;
-- (IBAction)showQueueWindow: (id)sender;
+@property (nonatomic, readonly) NSUInteger count;
+@property (nonatomic, readonly) NSUInteger pendingItemsCount;
+@property (nonatomic, readonly) NSUInteger workingItemsCount;
+
+- (void)addJob:(HBJob *)item;
+- (void)addJobsFromArray:(NSArray *)items;
+
+- (BOOL)jobExistAtURL:(NSURL *)url;
+
+- (void)removeAllJobs;
+- (void)setEncodingJobsAsPending;
+
+- (IBAction)rip:(id)sender;
+- (IBAction)cancel:(id)sender;
@end