File indexing completed on 2024-05-05 07:55:01
0001 /* 0002 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDAV_ENUMS_H 0008 #define KDAV_ENUMS_H 0009 0010 #include <QFlags> 0011 0012 /** 0013 * The KDAV namespace. 0014 */ 0015 namespace KDAV 0016 { 0017 /** 0018 * Describes the DAV protocol dialect. 0019 */ 0020 enum Protocol { 0021 CalDav = 0, ///< The CalDav protocol as defined in https://devguide.calconnect.org/CalDAV 0022 CardDav, ///< The CardDav protocol as defined in https://devguide.calconnect.org/CardDAV 0023 GroupDav, ///< The GroupDav protocol as defined in http://www.groupdav.org 0024 }; 0025 0026 /** 0027 * Describes the DAV privileges on a resource (see RFC3744) 0028 */ 0029 enum Privilege { 0030 None = 0x0, 0031 Read = 0x1, 0032 Write = 0x2, 0033 WriteProperties = 0x4, 0034 WriteContent = 0x8, 0035 Unlock = 0x10, 0036 ReadAcl = 0x20, 0037 ReadCurrentUserPrivilegeSet = 0x40, 0038 WriteAcl = 0x80, 0039 Bind = 0x100, 0040 Unbind = 0x200, 0041 All = 0x400, 0042 }; 0043 Q_DECLARE_FLAGS(Privileges, Privilege) 0044 Q_DECLARE_OPERATORS_FOR_FLAGS(Privileges) 0045 } 0046 0047 #endif