KIMAP Library
acl.h
00001 /* 00002 Copyright (c) 2009 Andras Mantia <amantia@kde.org> 00003 00004 This library is free software; you can redistribute it and/or modify it 00005 under the terms of the GNU Library General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or (at your 00007 option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, but WITHOUT 00010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00012 License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to the 00016 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 02110-1301, USA. 00018 */ 00019 00020 #ifndef KIMAP_ACL_H 00021 #define KIMAP_ACL_H 00022 00023 #include "kimap_export.h" 00024 00025 namespace KIMAP { 00026 00030 namespace Acl { 00031 00035 enum Right { 00036 None = 0x000000, 00038 Lookup = 0x000001, 00040 Read = 0x000002, 00042 KeepSeen = 0x000004, 00044 Write = 0x000008, 00046 Insert = 0x000010, 00051 Post = 0x000020, 00053 Create = 0x000040, 00059 CreateMailbox = 0x000080, 00061 DeleteMailbox = 0x000100, 00063 DeleteMessage = 0x000200, 00065 Delete = 0x000400, 00067 Admin = 0x000800, 00073 Expunge = 0x001000, 00079 WriteShared = 0x002000, 00080 Custom0 = 0x004000, 00081 Custom1 = 0x008000, 00082 Custom2 = 0x010000, 00083 Custom3 = 0x020000, 00084 Custom4 = 0x040000, 00085 Custom5 = 0x080000, 00086 Custom6 = 0x100000, 00087 Custom7 = 0x200000, 00088 Custom8 = 0x400000, 00089 Custom9 = 0x800000 00090 }; 00091 00092 Q_DECLARE_FLAGS(Rights, Right) 00093 00094 00099 KIMAP_EXPORT Rights normalizedRights( Rights rights ); 00100 00105 KIMAP_EXPORT Rights denormalizedRights( Rights rights ); 00106 00112 KIMAP_EXPORT QByteArray rightsToString( Rights rights ); 00120 KIMAP_EXPORT Rights rightsFromString( const QByteArray &string ); 00121 00122 } 00123 } 00124 00125 Q_DECLARE_OPERATORS_FOR_FLAGS( KIMAP::Acl::Rights ) 00126 00127 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:39:10 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:39:10 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.