blob: 19cc40e0ea891ea867d2e945fcd13b7033d15632 (
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
26
27
28
29
30
31
32
|
#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 HttpThread : NSObject
{
downloader::IHttpThreadCallback * m_callback;
NSURLConnection * m_connection;
int64_t m_begRange, m_endRange;
int64_t m_downloadedBytes;
int64_t m_expectedSize;
}
- (id) initWith:(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
|