diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-27 01:25:19 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-27 01:25:19 -0400 |
commit | e6eb634beac831e64becc03928a467701f9625cf (patch) | |
tree | bf6df33a2a77c6ee462438f9e0e38c1717414a4f /Classes/Fetcher.h | |
parent | 39478a90674f2b4238ba1cfaa49908deb0200e24 (diff) | |
download | piccast-app-e6eb634beac831e64becc03928a467701f9625cf.tar.gz piccast-app-e6eb634beac831e64becc03928a467701f9625cf.zip |
made fetcher take a payload, added favicon, turned off statement caching, may turn it back on who knows, added sourceid to topics, added category to topictableviewcell, did a little cleaning
Diffstat (limited to 'Classes/Fetcher.h')
-rw-r--r-- | Classes/Fetcher.h | 10 |
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 |