File indexing completed on 2024-06-16 04:52:28

0001 /*
0002     Copyright (c) 2010 Tobias Koenig <tokoe@kde.org>
0003 
0004     This program is free software; you can redistribute it and/or modify
0005     it under the terms of the GNU General Public License as published by
0006     the Free Software Foundation; either version 2 of the License, or
0007     (at your option) any later version.
0008 
0009     This program is distributed in the hope that it will be useful,
0010     but WITHOUT ANY WARRANTY; without even the implied warranty of
0011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0012     GNU General Public License for more details.
0013 
0014     You should have received a copy of the GNU General Public License
0015     along with this program; if not, write to the Free Software
0016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0017 */
0018 
0019 #ifndef KDAV2_ENUMS_H
0020 #define KDAV2_ENUMS_H
0021 
0022 
0023 #include <QtCore/QFlags>
0024 
0025 namespace KDAV2
0026 {
0027 
0028 /**
0029  * Describes the DAV protocol dialect.
0030  */
0031 enum Protocol {
0032     CalDav = 0,   ///< The CalDav protocol as defined in http://caldav.calconnect.org
0033     CardDav,      ///< The CardDav protocol as defined in http://carddav.calconnect.org
0034     GroupDav      ///< The GroupDav protocol as defined in http://www.groupdav.org
0035 };
0036 
0037 /**
0038  * Describes the DAV privileges on a resource (see RFC3744)
0039  */
0040 enum Privilege {
0041     None = 0x0,
0042     Read = 0x1,
0043     Write = 0x2,
0044     WriteProperties = 0x4,
0045     WriteContent = 0x8,
0046     Unlock = 0x10,
0047     ReadAcl = 0x20,
0048     ReadCurrentUserPrivilegeSet = 0x40,
0049     WriteAcl = 0x80,
0050     Bind = 0x100,
0051     Unbind = 0x200,
0052     All = 0x400
0053 };
0054 Q_DECLARE_FLAGS(Privileges, Privilege)
0055 Q_DECLARE_OPERATORS_FOR_FLAGS(Privileges)
0056 
0057 }
0058 
0059 #endif