1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-11 17:09:46 +01:00
Telegram/thirdparty/GDFileManager/GDFileManagerDownloadOperation.h

29 lines
967 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
//
// GDFileManagerDownloadOperation.h
// GDFileManagerExample
//
// Created by Graham Dennis on 18/08/13.
// Copyright (c) 2013 Graham Dennis. All rights reserved.
//
#import "GDParentOperation.h"
@class GDFileManager;
@class GDURLMetadata;
@interface GDFileManagerDownloadOperation : GDParentOperation
- (instancetype)initWithFileManager:(GDFileManager *)fileManager sourceURL:(NSURL *)sourceURL
success:(void (^)(NSURL *localURL, GDURLMetadata *metadata))success
failure:(void (^)(NSError *error))failure;
@property (nonatomic, readonly, strong) GDFileManager *fileManager;
@property (nonatomic, readonly, strong) NSURL *sourceURL;
@property (nonatomic, strong) NSURL *localDestinationFileURL;
@property (nonatomic, strong) NSString *fileVersion;
@property (nonatomic, strong) void (^downloadProgressBlock)(NSInteger bytesRead, NSInteger totalBytesRead, NSInteger totalBytesExpectedToRead);
@end