diff options
author | Damiano Galassi <[email protected]> | 2019-08-11 09:07:20 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-08-11 09:07:20 +0200 |
commit | bed55e05880f0286f504142a48089bce60c96cc7 (patch) | |
tree | 795647e216e70981acc9ba0769eb03c53da44023 /macosx/HBRemoteCore.h | |
parent | 6437b9d6653352011dc8af541b373369c45c8d44 (diff) |
MacGui: move the queue libhb instance to an xpc service.
Diffstat (limited to 'macosx/HBRemoteCore.h')
-rw-r--r-- | macosx/HBRemoteCore.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/macosx/HBRemoteCore.h b/macosx/HBRemoteCore.h new file mode 100644 index 000000000..6bd43c141 --- /dev/null +++ b/macosx/HBRemoteCore.h @@ -0,0 +1,40 @@ +/* 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 "HBRedirect.h" + +@import HandBrakeKit; + +NS_ASSUME_NONNULL_BEGIN + +@interface HBRemoteCore : NSObject + +- (instancetype)initWithLogLevel:(NSInteger)level name:(NSString *)name; + +@property (nonatomic, readonly) HBState state; + +@property (nonatomic, readonly) HBRedirect *stdoutRedirect; +@property (nonatomic, readonly) HBRedirect *stderrRedirect; + +@property (nonatomic, readwrite) BOOL automaticallyPreventSleep; + +- (void)preventSleep; +- (void)allowSleep; + +- (void)scanURL:(NSURL *)url titleIndex:(NSUInteger)index previews:(NSUInteger)previewsNum minDuration:(NSUInteger)seconds progressHandler:(HBCoreProgressHandler)progressHandler completionHandler:(HBCoreCompletionHandler)completionHandler; + +- (void)cancelScan; + +- (void)encodeJob:(HBJob *)job progressHandler:(HBCoreProgressHandler)progressHandler completionHandler:(HBCoreCompletionHandler)completionHandler; + +- (void)cancelEncode; + +- (void)pause; + +- (void)resume; + +@end + +NS_ASSUME_NONNULL_END |