]> err.no Git - sope/blob - sopex/SOPEX/SOPEXWebConnection.h
added ability to build with gstep-make
[sope] / sopex / SOPEX / SOPEXWebConnection.h
1
2 #ifndef __SOPEX_SOPEXWebConnection_H__
3 #define __SOPEX_SOPEXWebConnection_H__
4
5 #import <Foundation/NSObject.h>
6
7 @class NSURL, NSString, NSData, NSBundle, NSMutableDictionary;
8 @class NSURLResponse;
9
10 @interface SOPEXWebConnection : NSObject 
11 {
12     NSURL    *url;
13     NSString *sessionID;
14     NSBundle *localResourceBundle;
15     NSMutableDictionary *resourceCache;
16     NSString *appPrefix;
17 }
18
19 - (id)initWithURL:(id)_url localResourceBundle:(NSBundle *)_resourceBundle;
20
21     /* accessors */
22
23 - (NSURL *)url;
24 - (NSString *)sessionID;
25
26     /* operations */
27
28 - (void)processResponse:(NSURLResponse *)_r data:(NSData *)_data;
29
30 - (BOOL)shouldRewriteRequestURL:(NSURL *)_url;
31 - (NSURL *)rewriteRequestURL:(NSURL *)_url;
32
33 @end
34
35 #endif /* __SOPEX_SOPEXWebConnection_H__*/