• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KIMAP Library

  • kimap
acl.h
1/*
2 Copyright (c) 2009 Andras Mantia <amantia@kde.org>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#ifndef KIMAP_ACL_H
21#define KIMAP_ACL_H
22
23#include "kimap_export.h"
24
25#include <qglobal.h>
26
27namespace KIMAP {
28
32namespace Acl {
33
37enum Right {
38 None = 0x000000,
40 Lookup = 0x000001,
42 Read = 0x000002,
44 KeepSeen = 0x000004,
46 Write = 0x000008,
48 Insert = 0x000010,
53 Post = 0x000020,
55 Create = 0x000040,
61 CreateMailbox = 0x000080,
63 DeleteMailbox = 0x000100,
65 DeleteMessage = 0x000200,
67 Delete = 0x000400,
69 Admin = 0x000800,
75 Expunge = 0x001000,
81 WriteShared = 0x002000,
82 Custom0 = 0x004000,
83 Custom1 = 0x008000,
84 Custom2 = 0x010000,
85 Custom3 = 0x020000,
86 Custom4 = 0x040000,
87 Custom5 = 0x080000,
88 Custom6 = 0x100000,
89 Custom7 = 0x200000,
90 Custom8 = 0x400000,
91 Custom9 = 0x800000
92};
93
94Q_DECLARE_FLAGS( Rights, Right )
95
96
102KIMAP_EXPORT Rights normalizedRights( Rights rights );
103
109KIMAP_EXPORT Rights denormalizedRights( Rights rights );
110
116KIMAP_EXPORT QByteArray rightsToString( Rights rights );
124KIMAP_EXPORT Rights rightsFromString( const QByteArray &string );
125
126}
127}
128
129Q_DECLARE_OPERATORS_FOR_FLAGS( KIMAP::Acl::Rights )
130
131#endif
KIMAP::Acl::rightsFromString
Rights rightsFromString(const QByteArray &string)
Convert the text form of a set of rights into a Rights bitflag.
Definition: acl.cpp:67
KIMAP::Acl::rightsToString
QByteArray rightsToString(Rights rights)
Convert a set of rights into text format.
Definition: acl.cpp:89
KIMAP::Acl::Right
Right
Possible rights that can be held on a mailbox.
Definition: acl.h:37
KIMAP::Acl::Expunge
@ Expunge
Expunge the messages in this mailbox.
Definition: acl.h:75
KIMAP::Acl::WriteShared
@ WriteShared
Write shared annotations.
Definition: acl.h:81
KIMAP::Acl::CreateMailbox
@ CreateMailbox
Create new child mailboxes, or move a mailbox with this mailbox as the new parent.
Definition: acl.h:61
KIMAP::Acl::Delete
@ Delete
Obsolete as of RFC 4314, replaced by DeleteMessage and Expunge.
Definition: acl.h:67
KIMAP::Acl::Custom3
@ Custom3
Server-specific right 3.
Definition: acl.h:85
KIMAP::Acl::KeepSeen
@ KeepSeen
Set or clear the \Seen flag on messages in the mailbox, and keep it across sessions.
Definition: acl.h:44
KIMAP::Acl::Custom9
@ Custom9
Server-specific right 9.
Definition: acl.h:91
KIMAP::Acl::Admin
@ Admin
View and modify the access control list for the mailbox.
Definition: acl.h:69
KIMAP::Acl::Create
@ Create
Obsolete as of RFC 4314, replaced by CreateMailbox and DeleteMailbox.
Definition: acl.h:55
KIMAP::Acl::Insert
@ Insert
Perform APPEND and COPY with the mailbox as the target.
Definition: acl.h:48
KIMAP::Acl::Custom5
@ Custom5
Server-specific right 5.
Definition: acl.h:87
KIMAP::Acl::Custom0
@ Custom0
Server-specific right 0.
Definition: acl.h:82
KIMAP::Acl::Custom2
@ Custom2
Server-specific right 2.
Definition: acl.h:84
KIMAP::Acl::Lookup
@ Lookup
Mailbox is visible to LIST/LSUB commands, SUBSCRIBE mailbox.
Definition: acl.h:40
KIMAP::Acl::Custom1
@ Custom1
Server-specific right 1.
Definition: acl.h:83
KIMAP::Acl::Custom4
@ Custom4
Server-specific right 4.
Definition: acl.h:86
KIMAP::Acl::Custom7
@ Custom7
Server-specific right 7.
Definition: acl.h:89
KIMAP::Acl::Post
@ Post
Send mail to the submission address for the mailbox.
Definition: acl.h:53
KIMAP::Acl::DeleteMessage
@ DeleteMessage
Set or clear the \Deleted flag on messages in the mailbox.
Definition: acl.h:65
KIMAP::Acl::Custom6
@ Custom6
Server-specific right 6.
Definition: acl.h:88
KIMAP::Acl::Read
@ Read
SELECT the mailbox, perform STATUS.
Definition: acl.h:42
KIMAP::Acl::Write
@ Write
Set or clear flags other than \Seen and \Deleted on messages in the mailbox.
Definition: acl.h:46
KIMAP::Acl::Custom8
@ Custom8
Server-specific right 8.
Definition: acl.h:90
KIMAP::Acl::DeleteMailbox
@ DeleteMailbox
Delete or move the mailbox.
Definition: acl.h:63
KIMAP::Acl::denormalizedRights
Rights denormalizedRights(Rights rights)
Returns a rights mask that contains both obsolete and new flags if one of them is set.
KIMAP::Acl::normalizedRights
Rights normalizedRights(Rights rights)
Returns a rights mask that has no obsolete members anymore, i.e.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIMAP Library

Skip menu "KIMAP Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal