KIMAP
50 Q_GLOBAL_STATIC(RightsMap, globalRights)
59 if (
string.isEmpty()) {
64 if (
string[0] ==
'+' ||
string[0] ==
'-') {
68 for (
int i = pos; i <
string.size(); i++) {
69 if (globalRights->map.contains(
string[i])) {
70 result |= globalRights->map[
string[i]];
81 for (
int right = Lookup; right <= Custom9; right <<= 1) {
83 result += globalRights->map.key(
static_cast<Right>(right));
92 Rights normalized = rights;
93 if (normalized & Create) {
94 normalized |= (CreateMailbox | DeleteMailbox);
95 normalized &= ~Create;
97 if (normalized & Delete) {
98 normalized |= (DeleteMessage | Expunge);
99 normalized &= ~Delete;
106 Rights denormalized = normalizedRights(rights);
107 if (denormalized & (CreateMailbox | DeleteMailbox)) {
108 denormalized |= Create;
110 if (denormalized & (DeleteMessage | Expunge)) {
111 denormalized |= Delete;
@ DeleteMailbox
Delete or move the mailbox.
@ Custom4
Server-specific right 4.
@ Custom2
Server-specific right 2.
@ Custom3
Server-specific right 3.
@ Expunge
Expunge the messages in this mailbox.
Right
Possible rights that can be held on a mailbox.
@ Custom9
Server-specific right 9.
@ Custom1
Server-specific right 1.
@ Insert
Perform APPEND and COPY with the mailbox as the target.
@ Custom0
Server-specific right 0.
@ WriteShared
Write shared annotations.
@ Create
Obsolete as of RFC 4314, replaced by CreateMailbox and DeleteMailbox.
KIMAP_EXPORT Rights rightsFromString(const QByteArray &string)
Convert the text form of a set of rights into a Rights bitflag.
@ Custom6
Server-specific right 6.
KIMAP_EXPORT Rights denormalizedRights(Rights rights)
Returns a rights mask that contains both obsolete and new flags if one of them is set.
@ Delete
Obsolete as of RFC 4314, replaced by DeleteMessage and Expunge.
@ Custom8
Server-specific right 8.
@ Write
Set or clear flags other than \Seen and \Deleted on messages in the mailbox.
@ Custom5
Server-specific right 5.
@ DeleteMessage
Set or clear the \Deleted flag on messages in the mailbox.
@ Admin
View and modify the access control list for the mailbox.
@ KeepSeen
Set or clear the \Seen flag on messages in the mailbox, and keep it across sessions.
@ Custom7
Server-specific right 7.
KIMAP_EXPORT Rights normalizedRights(Rights rights)
Returns a rights mask that has no obsolete members anymore, i.e.
@ Read
SELECT the mailbox, perform STATUS.
@ Lookup
Mailbox is visible to LIST/LSUB commands, SUBSCRIBE mailbox.
@ Post
Send mail to the submission address for the mailbox.
@ CreateMailbox
Create new child mailboxes, or move a mailbox with this mailbox as the new parent.
KIMAP_EXPORT QByteArray rightsToString(Rights rights)
Convert a set of rights into text format.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 03:48:19 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.