2 Copyright (C) 2000-2003 SKYRIX Software AG
4 This file is part of OGo
6 OGo 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 OGo 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 OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #ifndef __codeon_SaxDAVHandler_H__
24 #define __codeon_SaxDAVHandler_H__
26 #include <SaxObjC/SaxDefaultHandler.h>
29 A SAX handler to parse WebDAV requests ...
31 The delegate is used to parse (potentially long) responses.
34 @class NSMutableString, NSMutableArray, NSArray, NSString, NSMutableDictionary;
35 @class EOFetchSpecification;
37 @interface SaxDAVHandler : SaxDefaultHandler
39 id<NSObject,SaxLocator> locator;
40 id delegate; /* non-retained */
43 NSMutableArray *propNames;
46 NSMutableArray *responses;
48 NSMutableDictionary *propSet;
49 EOFetchSpecification *fspec;
53 NSMutableString *cdata;
55 NSString *lastLiteral;
56 NSString *lastWherePropName;
57 NSString *lastScopeHref;
58 NSString *lastScopeDepth;
60 NSMutableArray *targets;
62 NSMutableArray *qualifiers;
63 NSMutableArray *compoundQualStack;
74 BOOL PropertyUpdate:1;
103 - (void)setDelegate:(id)_delegate;
110 /* propfind results */
112 - (BOOL)propFindAllProperties;
113 - (BOOL)propFindPropertyNames;
114 - (NSArray *)propFindQueriedNames;
115 - (NSArray *)bpropFindTargets;
117 /* proppatch results */
119 - (NSArray *)propPatchPropertyNamesToRemove;
120 - (NSDictionary *)propPatchValues;
122 /* search query results */
124 - (EOFetchSpecification *)searchFetchSpecification;
128 @interface NSObject(SaxDAVHandlerDelegate)
130 - (void)davHandler:(SaxDAVHandler *)_handler
131 receivedProperties:(NSDictionary *)_record
132 forURI:(NSString *)_uri;
136 #endif /* __codeon_SaxDAVHandler_H__ */