Welcome to mirror list, hosted at ThFree Co, Russian Federation.

http_thread_apple.h « platform - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50e2e7a39117ed02ea66710c2bccde9faeae049e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#import <Foundation/Foundation.h>

#include "../std/string.hpp"

namespace downloader { class IHttpThreadCallback; }

@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;
@end