Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / ucb / source / ucp / webdav / DAVTypes.hxx
blob3cce18abb724e63e1ffd1758168038a7e612ffe6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #ifndef INCLUDED_UCB_SOURCE_UCP_WEBDAV_DAVTYPES_HXX
22 #define INCLUDED_UCB_SOURCE_UCP_WEBDAV_DAVTYPES_HXX
24 #include <rtl/ustring.hxx>
25 #include <com/sun/star/uno/Any.hxx>
27 namespace http_dav_ucp
29 /* RFC 2518
31 15.1 Class 1
33 A class 1 compliant resource MUST meet all "MUST" requirements in all
34 sections of this document.
36 Class 1 compliant resources MUST return, at minimum, the value "1" in
37 the DAV header on all responses to the OPTIONS method.
39 15.2 Class 2
41 A class 2 compliant resource MUST meet all class 1 requirements and
42 support the LOCK method, the supportedlock property, the
43 lockdiscovery property, the Time-Out response header and the Lock-
44 Token request header. A class "2" compliant resource SHOULD also
45 support the Time-Out request header and the owner XML element.
47 Class 2 compliant resources MUST return, at minimum, the values "1"
48 and "2" in the DAV header on all responses to the OPTIONS method.
51 struct DAVCapabilities
53 bool class1;
54 bool class2;
55 bool executable; // supports "executable" property (introduced by mod_dav)
57 DAVCapabilities() : class1( false ), class2( false ), executable( false ) {}
60 enum Depth { DAVZERO = 0, DAVONE = 1, DAVINFINITY = -1 };
62 enum ProppatchOperation { PROPSET = 0, PROPREMOVE = 1 };
64 struct ProppatchValue
66 ProppatchOperation operation;
67 OUString name;
68 css::uno::Any value;
70 ProppatchValue( const ProppatchOperation o,
71 const OUString & n,
72 const css::uno::Any & v )
73 : operation( o ), name( n ), value( v ) {}
76 } // namespace http_dav_ucp
78 #endif // INCLUDED_UCB_SOURCE_UCP_WEBDAV_DAVTYPES_HXX
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */