arq_restore/http/HTTPConnectionDelegate.h
Stefan Reitshamer 40ef06c9d2 Switched from NSURLConnection API to CFHTTP API.
I made this switch in Arq 2.6.3 last March, and it has been much more stable.
2012-08-20 10:00:49 -04:00

19 lines
742 B
Objective-C

//
// HTTPConnectionDelegate.h
// Arq
//
// Created by Stefan Reitshamer on 3/16/12.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
@protocol HTTPConnection;
#define THROTTLE_NONE 0
#define THROTTLE_AUTOMATIC 1
#define THROTTLE_FIXED 2
@protocol HTTPConnectionDelegate <NSObject>
- (void)httpConnection:(id <HTTPConnection>)theHTTPConnection sentBytes:(unsigned long long)sent throttleType:(int *)theThrottleType throttleKBPS:(int *)theThrottleKBPS pauseRequested:(BOOL *)isPauseRequested abortRequested:(BOOL *)isAbortRequested;
- (void)httpConnection:(id <HTTPConnection>)theHTTPConnection subtractSentBytes:(unsigned long long)sent;
- (BOOL)abortRequestedForHTTPConnection:(id <HTTPConnection>)theHTTPConnection;
@end