blob: 97f3bf4d724090784950d32c8c343163a8c32d96 (
plain)
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
|
#pragma once
#import <Foundation/Foundation.h>
#include "std/string.hpp"
#include "std/target_os.hpp"
namespace downloader { class IHttpThreadCallback; }
#ifdef OMIM_OS_IPHONE
#import "../iphone/Maps/Classes/DownloadIndicatorProtocol.h"
#endif
@interface HttpThreadImpl : NSObject
- (instancetype)initWithURL:(string const &)url callback:(downloader::IHttpThreadCallback &)cb
begRange:(int64_t)beg endRange:(int64_t)end expectedSize:(int64_t)size postBody:(string const &)pb;
- (void)cancel;
#ifdef OMIM_OS_IPHONE
+ (void)setDownloadIndicatorProtocol:(id<DownloadIndicatorProtocol>)indicator;
#endif
@end
|