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 #pragma once
22 
23 #include <rtl/ustring.hxx>
24 #include <com/sun/star/uno/Any.hxx>
25 
26 namespace http_dav_ucp
27 {
28 /* RFC 2518
29 
30 15.1 Class 1
31 
32  A class 1 compliant resource MUST meet all "MUST" requirements in all
33  sections of this document.
34 
35  Class 1 compliant resources MUST return, at minimum, the value "1" in
36  the DAV header on all responses to the OPTIONS method.
37 
38 15.2 Class 2
39 
40  A class 2 compliant resource MUST meet all class 1 requirements and
41  support the LOCK method, the supportedlock property, the
42  lockdiscovery property, the Time-Out response header and the Lock-
43  Token request header. A class "2" compliant resource SHOULD also
44  support the Time-Out request header and the owner XML element.
45 
46  Class 2 compliant resources MUST return, at minimum, the values "1"
47  and "2" in the DAV header on all responses to the OPTIONS method.
48 */
49 
51 {
52  bool class1;
53  bool class2;
54  bool executable; // supports "executable" property (introduced by mod_dav)
55 
56  DAVCapabilities() : class1( false ), class2( false ), executable( false ) {}
57 };
58 
59 enum Depth { DAVZERO = 0, DAVONE = 1, DAVINFINITY = -1 };
60 
62 
64 {
66  OUString name;
67  css::uno::Any value;
68 
70  const OUString & n,
71  const css::uno::Any & v )
72  : operation( o ), name( n ), value( v ) {}
73 };
74 
75 } // namespace http_dav_ucp
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ProppatchOperation operation
Definition: DAVTypes.hxx:65
ProppatchValue(const ProppatchOperation o, const OUString &n, const css::uno::Any &v)
Definition: DAVTypes.hxx:69