Libkdav2

enums.h
1/*
2 Copyright (c) 2010 Tobias Koenig <tokoe@kde.org>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/
18
19#ifndef KDAV2_ENUMS_H
20#define KDAV2_ENUMS_H
21
22
23#include <QtCore/QFlags>
24
25namespace KDAV2
26{
27
28/**
29 * Describes the DAV protocol dialect.
30 */
31enum Protocol {
32 CalDav = 0, ///< The CalDav protocol as defined in http://caldav.calconnect.org
33 CardDav, ///< The CardDav protocol as defined in http://carddav.calconnect.org
34 GroupDav ///< The GroupDav protocol as defined in http://www.groupdav.org
35};
36
37/**
38 * Describes the DAV privileges on a resource (see RFC3744)
39 */
40enum Privilege {
41 None = 0x0,
42 Read = 0x1,
43 Write = 0x2,
44 WriteProperties = 0x4,
45 WriteContent = 0x8,
46 Unlock = 0x10,
47 ReadAcl = 0x20,
48 ReadCurrentUserPrivilegeSet = 0x40,
49 WriteAcl = 0x80,
50 Bind = 0x100,
51 Unbind = 0x200,
52 All = 0x400
53};
54Q_DECLARE_FLAGS(Privileges, Privilege)
55Q_DECLARE_OPERATORS_FOR_FLAGS(Privileges)
56
57}
58
59#endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.