mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
29 lines
1.1 KiB
Objective-C
Executable File
29 lines
1.1 KiB
Objective-C
Executable File
#import <Foundation/Foundation.h>
|
|
#import "CBDownloadOperation.h"
|
|
#import "CBCoubAsset.h"
|
|
#import "CBDownloadOperationDelegate.h"
|
|
#import "LegacyHTTPRequestOperation.h"
|
|
|
|
@interface CBGenericDownloadOperation : NSObject <CBDownloadOperation>
|
|
|
|
@property (nonatomic, strong) NSOperation<LegacyHTTPRequestOperation> *downloadOperation;
|
|
@property (nonatomic, readwrite) NSOperationQueuePriority queuePriority;
|
|
|
|
@property (nonatomic, assign) NSInteger tag;
|
|
@property (nonatomic, assign) BOOL starting;
|
|
@property (nonatomic, assign) BOOL comleted;
|
|
@property (nonatomic, assign) BOOL chunkDownloadingNeeded;
|
|
|
|
@property (nonatomic, weak) id<CBCoubAsset> coub;
|
|
@property (nonatomic, weak) id<CBDownloadOperationDelegate> operationViewDelegate;
|
|
|
|
@property(nonatomic, copy) void (^clientSuccess)(id<CBCoubAsset>, NSInteger tag);
|
|
@property(nonatomic, copy) void (^clientFailure)(id<CBCoubAsset>, NSInteger tag, NSError *error);
|
|
|
|
@property (nonatomic, copy) void (^completionBlock)(id<CBDownloadOperation> process, NSError *error);
|
|
|
|
//protected
|
|
- (void)successDownload;
|
|
- (void)failureDownloadWithError:(NSError *)error;
|
|
@end
|