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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-11-08 00:03:58 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:27:29 +0300
commitcf4d77fa0bae136c90581650e4c72b0267baa0a2 (patch)
tree1164886744cec4a8b83266705475c0e603ee6100 /platform/http_thread_apple.h
parent4ca29d9593b4890441dc163999302a870b76162a (diff)
[mac][downloader] Finished basic chunks support
Diffstat (limited to 'platform/http_thread_apple.h')
-rw-r--r--platform/http_thread_apple.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/platform/http_thread_apple.h b/platform/http_thread_apple.h
new file mode 100644
index 0000000000..50e2e7a391
--- /dev/null
+++ b/platform/http_thread_apple.h
@@ -0,0 +1,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