1 /* 2 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org> 3 4 SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #ifndef KDAV_ENUMS_H 8 #define KDAV_ENUMS_H 9 10 #include <QFlags> 11 12 /** 13 * The KDAV namespace. 14 */ 15 namespace KDAV 16 { 17 /** 18 * Describes the DAV protocol dialect. 19 */ 20 enum Protocol { 21 CalDav = 0, ///< The CalDav protocol as defined in https://devguide.calconnect.org/CalDAV 22 CardDav, ///< The CardDav protocol as defined in https://devguide.calconnect.org/CardDAV 23 GroupDav, ///< The GroupDav protocol as defined in http://www.groupdav.org 24 }; 25 26 /** 27 * Describes the DAV privileges on a resource (see RFC3744) 28 */ 29 enum Privilege { 30 None = 0x0, 31 Read = 0x1, 32 Write = 0x2, 33 WriteProperties = 0x4, 34 WriteContent = 0x8, 35 Unlock = 0x10, 36 ReadAcl = 0x20, 37 ReadCurrentUserPrivilegeSet = 0x40, 38 WriteAcl = 0x80, 39 Bind = 0x100, 40 Unbind = 0x200, 41 All = 0x400, 42 }; 43 Q_DECLARE_FLAGS(Privileges, Privilege) 44 Q_DECLARE_OPERATORS_FOR_FLAGS(Privileges) 45 } 46 47 #endif 48