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

36 lines
885 B
C
Raw Normal View History

2014-07-10 16:11:09 +02:00
/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGActor.h"
@class TGNetworkWorkerGuard;
@class TGLiveUploadActorData;
@interface TGLiveUploadActor : TGActor
- (void)updateSize:(NSUInteger)availableSize;
- (TGLiveUploadActorData *)finishRestOfFile:(NSUInteger)finalSize;
- (TGLiveUploadActorData *)finishRestOfFileWithHeader:(NSData *)header finalSize:(NSUInteger)finalSize;
- (void)completeWhenReady;
- (float)progress;
@end
@interface TGLiveUploadActorData : NSObject
@property (nonatomic, strong) NSString *path;
@end
@interface TGLiveUploadPart : NSObject
@property (nonatomic) int32_t partIndex;
@property (nonatomic) NSUInteger offset;
@property (nonatomic) NSUInteger length;
@end