00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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