summaryrefslogtreecommitdiffstats
path: root/Classes/Fetcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/Fetcher.h')
-rw-r--r--Classes/Fetcher.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Classes/Fetcher.h b/Classes/Fetcher.h
index d51a39d..cc32aba 100644
--- a/Classes/Fetcher.h
+++ b/Classes/Fetcher.h
@@ -13,17 +13,25 @@
- (void) connection:(NSURLConnection *)connection failedWithError:(NSError *)error;
- (void) connection:(NSURLConnection *)connection finishedWithData:(NSData *)data;
+@optional
+
+- (void) connection:(NSURLConnection *)connection failedWithError:(NSError *)error andPayload:(id)payload;
+- (void) connection:(NSURLConnection *)connection finishedWithData:(NSData *)data andPayload:(id)payload;
+
@end
@interface Fetcher : NSObject <NSURLProtocolClient> {
NSMutableData *receivedData;
id<FetcherDelegate> delegate;
+ id payload;
}
@property (nonatomic, assign) id<FetcherDelegate> delegate;
+@property (nonatomic, retain) id payload;
-+ (Fetcher *) initWithString:(NSString *)string andDelegate:(id <FetcherDelegate>)delegate;
++ (Fetcher *) initWithString:(NSString *)string payload:(id)p andDelegate:(id <FetcherDelegate>)d;
++ (Fetcher *) initWithString:(NSString *)string andDelegate:(id <FetcherDelegate>)d;
- (void) setUrlAndConnect:(NSString *)string;
@end