2 Copyright (C) 2002-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __NGObjWeb_SaxDAVHandler_H__
23 #define __NGObjWeb_SaxDAVHandler_H__
25 #include <SaxObjC/SaxDefaultHandler.h>
28 A SAX handler to parse WebDAV requests ...
30 The delegate is used to parse (potentially long) responses.
33 @class NSMutableString, NSMutableArray, NSArray, NSString, NSMutableDictionary;
34 @class EOFetchSpecification;
36 @interface SaxDAVHandler : SaxDefaultHandler
38 id<NSObject,SaxLocator> locator;
39 id delegate; /* non-retained */
42 NSMutableArray *propNames;
45 NSMutableArray *responses;
47 NSMutableDictionary *propSet;
48 EOFetchSpecification *fspec;
52 NSMutableString *cdata;
54 NSString *lastLiteral;
55 NSString *lastWherePropName;
56 NSString *lastScopeHref;
57 NSString *lastScopeDepth;
59 NSMutableArray *targets;
61 NSMutableArray *qualifiers;
62 NSMutableArray *compoundQualStack;
73 BOOL PropertyUpdate:1;
102 - (void)setDelegate:(id)_delegate;
109 /* propfind results */
111 - (BOOL)propFindAllProperties;
112 - (BOOL)propFindPropertyNames;
113 - (NSArray *)propFindQueriedNames;
114 - (NSArray *)bpropFindTargets;
116 /* proppatch results */
118 - (NSArray *)propPatchPropertyNamesToRemove;
119 - (NSDictionary *)propPatchValues;
121 /* search query results */
123 - (EOFetchSpecification *)searchFetchSpecification;
127 @interface NSObject(SaxDAVHandlerDelegate)
129 - (void)davHandler:(SaxDAVHandler *)_handler
130 receivedProperties:(NSDictionary *)_record
131 forURI:(NSString *)_uri;
135 #endif /* __NGObjWeb_SaxDAVHandler_H__ */