forked from Ascoware/get-iplayer-automator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDownload.h
63 lines (45 loc) · 1.44 KB
/
Download.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// Download.h
//
//
// Created by Thomas Willson on 12/16/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "HTTPProxy.h"
#import "Programme.h"
#import "TVFormat.h"
NS_ASSUME_NONNULL_BEGIN
@interface Download : NSObject
@property Programme *show;
@property (nullable) NSTask *task;
@property (nullable) NSPipe *pipe;
@property (nullable) NSPipe *errorPipe;
//AtomicParsley Tagging
@property (nullable) NSTask *apTask;
@property (nullable) NSPipe *apPipe;
//Download Information
@property (nullable) NSString *subtitleURL;
@property (copy) NSString *downloadPath;
@property (copy) NSString *subtitlePath;
//Subtitle Conversion
@property (nullable) NSTask *subsTask;
@property (nullable) NSPipe *subsErrorPipe;
@property (copy) NSString *defaultsPrefix;
@property (assign) BOOL running;
//Proxy Info
@property (nullable) HTTPProxy *proxy;
// If proxy is set, this will be a session configured with the set proxy.
// Otherwise, it uses the system (shared) session information.
@property NSURLSession *session;
@property (assign) BOOL isFilm;
@property NSURLSessionDataTask *currentRequest;
- (void)setCurrentProgress:(NSString *)string;
- (void)setPercentage:(double)d;
- (void)cancelDownload;
- (void)processGetiPlayerOutput:(NSString *)outp;
- (void)createDownloadPath;
- (void)tagDownloadWithMetadata;
- (void)atomicParsleyFinished:(nullable NSNotification *)finishedNote;
@end
NS_ASSUME_NONNULL_END