LibreOffice Module ucb (master)  1
DAVTypes.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 
21 #ifndef INCLUDED_UCB_SOURCE_UCP_WEBDAV_DAVTYPES_HXX
22 #define INCLUDED_UCB_SOURCE_UCP_WEBDAV_DAVTYPES_HXX
23 
24 #include <rtl/ustring.hxx>
25 #include <com/sun/star/uno/Any.hxx>
26 
27 namespace http_dav_ucp
28 {
29 /* RFC 2518
30 
31 15.1 Class 1
32 
33  A class 1 compliant resource MUST meet all "MUST" requirements in all
34  sections of this document.
35 
36  Class 1 compliant resources MUST return, at minimum, the value "1" in
37  the DAV header on all responses to the OPTIONS method.
38 
39 15.2 Class 2
40 
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.
46 
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.
49 */
50 
52 {
53  bool class1;
54  bool class2;
55  bool executable; // supports "executable" property (introduced by mod_dav)
56 
57  DAVCapabilities() : class1( false ), class2( false ), executable( false ) {}
58 };
59 
60 enum Depth { DAVZERO = 0, DAVONE = 1, DAVINFINITY = -1 };
61 
63 
65 {
67  OUString name;
68  css::uno::Any value;
69 
71  const OUString & n,
72  const css::uno::Any & v )
73  : operation( o ), name( n ), value( v ) {}
74 };
75 
76 } // namespace http_dav_ucp
77 
78 #endif // INCLUDED_UCB_SOURCE_UCP_WEBDAV_DAVTYPES_HXX
79 
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ProppatchOperation operation
Definition: DAVTypes.hxx:66
ProppatchValue(const ProppatchOperation o, const OUString &n, const css::uno::Any &v)
Definition: DAVTypes.hxx:70