blob: 723f4c211b32e31f530bf761117add40496f6fb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/* 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 serviceName:(NSString *)serviceName;
- (void)invalidate;
@property (nonatomic, readwrite) NSInteger logLevel;
@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 keepPreviews:(BOOL)keepPreviews progressHandler:(nonnull HBCoreProgressHandler)progressHandler completionHandler:(nonnull 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
|