summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-27 10:46:04 +0000
committerritsuka <[email protected]>2014-12-27 10:46:04 +0000
commitdf8b2ff3e109699e3dadd88404911f8dfc7b210a (patch)
tree8489fee4edaf57adf55f69d0c0d28f61a5757057 /macosx/HBCore.h
parent8df584534c0c39f5c2f298d8ba480cc906743bbf (diff)
MacGui: change the queue to work with serialized HBJob objects, remove the NSDictionary job representation and the duplicate prepareJob method. Implement NSCopying protocol in HBJob.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBCore.h')
-rw-r--r--macosx/HBCore.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/HBCore.h b/macosx/HBCore.h
index a0a831e5b..f78c26c55 100644
--- a/macosx/HBCore.h
+++ b/macosx/HBCore.h
@@ -8,6 +8,8 @@
#include "hb.h"
+@class HBJob;
+
// These constants specify the current state of HBCore.
typedef NS_ENUM(NSUInteger, HBState) {
HBStateIdle = HB_STATE_IDLE, ///< HB is doing nothing
@@ -111,6 +113,13 @@ extern NSString *HBCoreMuxingNotification;
@property (nonatomic, readonly) NSArray *titles;
/**
+ * Starts an asynchronous encoding session with the passed job.
+ *
+ * @param job the job to encode.
+ */
+- (void)encodeJob:(HBJob *)job;
+
+/**
* Starts the libhb encoding session.
*
* This method must be called after all jobs have been added.