#import #import "CBDownloadOperation.h" #import "CBCoubAsset.h" #import "CBDownloadOperationDelegate.h" #import "LegacyHTTPRequestOperation.h" @interface CBGenericDownloadOperation : NSObject @property (nonatomic, strong) NSOperation *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 coub; @property (nonatomic, weak) id operationViewDelegate; @property(nonatomic, copy) void (^clientSuccess)(id, NSInteger tag); @property(nonatomic, copy) void (^clientFailure)(id, NSInteger tag, NSError *error); @property (nonatomic, copy) void (^completionBlock)(id process, NSError *error); //protected - (void)successDownload; - (void)failureDownloadWithError:(NSError *)error; @end