KIMAP Library
acl.h
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
00027 namespace Acl {
00028
00029 enum Right {
00030 None = 0x000000,
00031 Lookup = 0x000001,
00032 Read = 0x000002,
00033 KeepSeen = 0x000004,
00034 Write = 0x000008,
00035 Insert = 0x000010,
00036 Post = 0x000020,
00037 Create = 0x000040,
00038 CreateMailbox = 0x000080,
00039 DeleteMailbox = 0x000100,
00040 DeleteMessage = 0x000200,
00041 Delete = 0x000400,
00042 Admin = 0x000800,
00043 Expunge = 0x001000,
00044 WriteShared = 0x002000,
00045 Custom0 = 0x004000,
00046 Custom1 = 0x008000,
00047 Custom2 = 0x010000,
00048 Custom3 = 0x020000,
00049 Custom4 = 0x040000,
00050 Custom5 = 0x080000,
00051 Custom6 = 0x100000,
00052 Custom7 = 0x200000,
00053 Custom8 = 0x400000,
00054 Custom9 = 0x800000
00055 };
00056
00057 Q_DECLARE_FLAGS(Rights, Right)
00058
00059 KIMAP_EXPORT QByteArray rightsToString( Rights rights );
00060 KIMAP_EXPORT Rights rightsFromString( const QByteArray &string );
00061
00062 }
00063 }
00064
00065 Q_DECLARE_OPERATORS_FOR_FLAGS( KIMAP::Acl::Rights )
00066
00067 #endif