1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DAVTypes.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _DAVTYPES_HXX_
32 #define _DAVTYPES_HXX_
34 #include <rtl/ustring.hxx>
35 #include <com/sun/star/uno/Any.hxx>
43 A class 1 compliant resource MUST meet all "MUST" requirements in all
44 sections of this document.
46 Class 1 compliant resources MUST return, at minimum, the value "1" in
47 the DAV header on all responses to the OPTIONS method.
51 A class 2 compliant resource MUST meet all class 1 requirements and
52 support the LOCK method, the supportedlock property, the
53 lockdiscovery property, the Time-Out response header and the Lock-
54 Token request header. A class "2" compliant resource SHOULD also
55 support the Time-Out request header and the owner XML element.
57 Class 2 compliant resources MUST return, at minimum, the values "1"
58 and "2" in the DAV header on all responses to the OPTIONS method.
61 struct DAVCapabilities
65 bool executable
; // supports "executable" property (introduced by mod_dav)
67 DAVCapabilities() : class1( false ), class2( false ), executable( false ) {}
70 enum Depth
{ DAVZERO
= 0, DAVONE
= 1, DAVINFINITY
= -1 };
72 enum ProppatchOperation
{ PROPSET
= 0, PROPREMOVE
= 1 };
76 ProppatchOperation operation
;
78 com::sun::star::uno::Any value
;
80 ProppatchValue( const ProppatchOperation o
,
81 const rtl::OUString
& n
,
82 const com::sun::star::uno::Any
& v
)
83 : operation( o
), name( n
), value( v
) {}
86 } // namespace webdav_ucp
88 #endif // _DAVTYPES_HXX_