]> err.no Git - sope/blob - sope-appserver/NGObjWeb/WebDAV/EOFetchSpecification+SoDAV.h
reverted gstep-base workaround (fixed in gstep-base svn trunk), bumped framework...
[sope] / sope-appserver / NGObjWeb / WebDAV / EOFetchSpecification+SoDAV.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
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
9   later version.
10
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.
15
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
19   02111-1307, USA.
20 */
21
22 #ifndef __NGObjWeb_EOFetchSpecification_SoDAV_H__
23 #define __NGObjWeb_EOFetchSpecification_SoDAV_H__
24
25 #import <EOControl/EOFetchSpecification.h>
26
27 @class NSString, NSArray;
28
29 /*
30   Additional WebDAV related methods for EOFetchSpecification. 
31   EOFetchSpecification is used to represent PROPFIND and SEARCH queries.
32   
33   If the selectedWebDAVPropertyNames (= the 'attributes' hint) is empty,
34   this designates that a "propall" query is to be done (a SELECT *).
35   
36   Note: the propertynames are given back as fully qualified XML names, eg
37     
38     {DAV:}getlastmodified
39     
40   The namespace is enclosed in the braces.
41   
42   Mapping of scope:
43                 depth      from
44     flat      - 1,noroot - 'shallow traversal of'
45     flat+self - 1        - 
46     self      - 0        - 
47     deep      - infinity - 'hierarchical traversal of'
48
49   Used hints:
50     hint         method
51     scope          - scopeOfWebDAVQuery
52     attributes     - selectedWebDAVPropertyNames
53     namesOnly      - queryWebDAVPropertyNamesOnly
54     bulkTargetKeys - davBulkTargetKeys
55 */
56
57 @interface EOFetchSpecification(SoDAV)
58
59 + (EOFetchSpecification *)parseWebDAVSQLString:(NSString *)_s;
60
61 - (NSArray *)selectedWebDAVPropertyNames;
62 - (NSString *)scopeOfWebDAVQuery; /* flat, deep, self, flat+self */
63 - (BOOL)queryWebDAVPropertyNamesOnly;
64 - (NSArray *)davBulkTargetKeys;
65
66 @end
67
68 #endif /* __NGObjWeb_EOFetchSpecification_SoDAV_H__ */