1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
/* emacs buffer mode hint -*- objc -*- */
#import <Foundation/Foundation.h>
#import <GNUstepBase/GSXML.h>
@interface WebDAVResource : NSObject
{
NSURL *_url;
Class _handleClass;
BOOL _dataChanged;
int _httpStatus;
NSString *_reason;
NSString *_lastModified;
NSString *_etag;
NSString *_user;
NSString *_password;
NSData *_data;
}
- (id)initWithURL:(NSURL *)url;
- (id)initWithURL:(NSURL *)url
username:(NSString *)username
password:(NSString *)password;
- (BOOL)readable;
/* WARNING Destructive */
- (BOOL)writableWithData:(NSData *)data;
- (int)httpStatus;
- (NSData *)data;
- (NSURL *)url;
- (BOOL)get;
- (BOOL)delete;
- (BOOL)put:(NSData *)data attributes:(NSDictionary *)attributes;
- (BOOL)propfind:(NSData *)data attributes:(NSDictionary *)attributes;
- (void)updateAttributes;
@end
@interface NSURL(SimpleAgenda)
+ (NSURL *)URLWithString:(NSString *)string possiblyRelativeToURL:(NSURL *)base;
- (NSString *)anonymousAbsoluteString;
@end
@interface GSXMLDocument(SimpleAgenda)
- (GSXMLDocument *)strippedDocument;
@end
|