KIMAP

acl.h
1 /*
2  SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KIMAP_ACL_H
8 #define KIMAP_ACL_H
9 
10 #include "kimap_export.h"
11 
12 #include <qglobal.h>
13 
14 namespace KIMAP
15 {
16 
20 namespace Acl
21 {
22 
26 enum Right {
27  None = 0x000000,
29  Lookup = 0x000001,
31  Read = 0x000002,
33  KeepSeen = 0x000004,
35  Write = 0x000008,
37  Insert = 0x000010,
42  Post = 0x000020,
44  Create = 0x000040,
50  CreateMailbox = 0x000080,
52  DeleteMailbox = 0x000100,
54  DeleteMessage = 0x000200,
56  Delete = 0x000400,
58  Admin = 0x000800,
64  Expunge = 0x001000,
70  WriteShared = 0x002000,
71  Custom0 = 0x004000,
72  Custom1 = 0x008000,
73  Custom2 = 0x010000,
74  Custom3 = 0x020000,
75  Custom4 = 0x040000,
76  Custom5 = 0x080000,
77  Custom6 = 0x100000,
78  Custom7 = 0x200000,
79  Custom8 = 0x400000,
80  Custom9 = 0x800000
81 };
82 
83 Q_DECLARE_FLAGS(Rights, Right)
84 
85 
91 KIMAP_EXPORT Rights normalizedRights(Rights rights);
92 
98 KIMAP_EXPORT Rights denormalizedRights(Rights rights);
99 
105 KIMAP_EXPORT QByteArray rightsToString(Rights rights);
113 KIMAP_EXPORT Rights rightsFromString(const QByteArray &string);
114 
115 }
116 }
117 
118 Q_DECLARE_OPERATORS_FOR_FLAGS(KIMAP::Acl::Rights)
119 
120 #endif
KIMAP_EXPORT Rights normalizedRights(Rights rights)
Returns a rights mask that has no obsolete members anymore, i.e.
Definition: acl.cpp:91
Set or clear the flag on messages in the mailbox, and keep it across sessions.
Definition: acl.h:33
Create new child mailboxes, or move a mailbox with this mailbox as the new parent.
Definition: acl.h:50
Server-specific right 2.
Definition: acl.h:73
KIMAP_EXPORT QByteArray rightsToString(Rights rights)
Convert a set of rights into text format.
Definition: acl.cpp:78
Server-specific right 4.
Definition: acl.h:75
Server-specific right 1.
Definition: acl.h:72
Send mail to the submission address for the mailbox.
Definition: acl.h:42
Write shared annotations.
Definition: acl.h:70
Obsolete as of RFC 4314, replaced by CreateMailbox and DeleteMailbox.
Definition: acl.h:44
Delete or move the mailbox.
Definition: acl.h:52
SELECT the mailbox, perform STATUS.
Definition: acl.h:31
Mailbox is visible to LIST/LSUB commands, SUBSCRIBE mailbox.
Definition: acl.h:29
Right
Possible rights that can be held on a mailbox.
Definition: acl.h:26
Server-specific right 0.
Definition: acl.h:71
Obsolete as of RFC 4314, replaced by DeleteMessage and Expunge.
Definition: acl.h:56
Set or clear flags other than and on messages in the mailbox.
Definition: acl.h:35
Server-specific right 8.
Definition: acl.h:79
KIMAP_EXPORT Rights denormalizedRights(Rights rights)
Returns a rights mask that contains both obsolete and new flags if one of them is set...
Definition: acl.cpp:105
Set or clear the flag on messages in the mailbox.
Definition: acl.h:54
KIMAP_EXPORT Rights rightsFromString(const QByteArray &string)
Convert the text form of a set of rights into a Rights bitflag.
Definition: acl.cpp:56
Expunge the messages in this mailbox.
Definition: acl.h:64
Server-specific right 9.
Definition: acl.h:80
View and modify the access control list for the mailbox.
Definition: acl.h:58
Server-specific right 3.
Definition: acl.h:74
Definition: acl.cpp:12
Perform APPEND and COPY with the mailbox as the target.
Definition: acl.h:37
Server-specific right 5.
Definition: acl.h:76
Server-specific right 6.
Definition: acl.h:77
Server-specific right 7.
Definition: acl.h:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 5 2020 23:11:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.