Files
comaps/platform/http_thread_apple.h
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

31 lines
708 B
Objective-C

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