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

KIMAP Library

  • sources
  • kde-4.14
  • kdepimlibs
  • 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 
27 namespace KIMAP {
28 
32 namespace Acl {
33 
37 enum 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 
94 Q_DECLARE_FLAGS( Rights, Right )
95 
96 
102 KIMAP_EXPORT Rights normalizedRights( Rights rights );
103 
109 KIMAP_EXPORT Rights denormalizedRights( Rights rights );
110 
116 KIMAP_EXPORT QByteArray rightsToString( Rights rights );
124 KIMAP_EXPORT Rights rightsFromString( const QByteArray &string );
125 
126 }
127 }
128 
129 Q_DECLARE_OPERATORS_FOR_FLAGS( KIMAP::Acl::Rights )
130 
131 #endif
QByteArray
KIMAP::Acl::KeepSeen
Set or clear the flag on messages in the mailbox, and keep it across sessions.
Definition: acl.h:44
KIMAP::Acl::CreateMailbox
Create new child mailboxes, or move a mailbox with this mailbox as the new parent.
Definition: acl.h:61
KIMAP::Acl::Custom2
Server-specific right 2.
Definition: acl.h:84
KIMAP::Acl::rightsToString
QByteArray rightsToString(Rights rights)
Convert a set of rights into text format.
Definition: acl.cpp:89
KIMAP::Acl::Custom4
Server-specific right 4.
Definition: acl.h:86
KIMAP::Acl::Custom1
Server-specific right 1.
Definition: acl.h:83
KIMAP::Acl::Post
Send mail to the submission address for the mailbox.
Definition: acl.h:53
KIMAP::Acl::WriteShared
Write shared annotations.
Definition: acl.h:81
KIMAP::Acl::Create
Obsolete as of RFC 4314, replaced by CreateMailbox and DeleteMailbox.
Definition: acl.h:55
KIMAP::Acl::DeleteMailbox
Delete or move the mailbox.
Definition: acl.h:63
KIMAP::Acl::Read
SELECT the mailbox, perform STATUS.
Definition: acl.h:42
KIMAP::Acl::Lookup
Mailbox is visible to LIST/LSUB commands, SUBSCRIBE mailbox.
Definition: acl.h:40
KIMAP::Acl::Right
Right
Possible rights that can be held on a mailbox.
Definition: acl.h:37
KIMAP::Acl::Custom0
Server-specific right 0.
Definition: acl.h:82
KIMAP::Acl::Delete
Obsolete as of RFC 4314, replaced by DeleteMessage and Expunge.
Definition: acl.h:67
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::Write
Set or clear flags other than and on messages in the mailbox.
Definition: acl.h:46
KIMAP::Acl::Custom8
Server-specific right 8.
Definition: acl.h:90
KIMAP::Acl::DeleteMessage
Set or clear the flag on messages in the mailbox.
Definition: acl.h:65
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::Expunge
Expunge the messages in this mailbox.
Definition: acl.h:75
KIMAP::Acl::Custom9
Server-specific right 9.
Definition: acl.h:91
KIMAP::Acl::Admin
View and modify the access control list for the mailbox.
Definition: acl.h:69
KIMAP::Acl::normalizedRights
Rights normalizedRights(Rights rights)
Returns a rights mask that has no obsolete members anymore, i.e.
KIMAP::Acl::Custom3
Server-specific right 3.
Definition: acl.h:85
KIMAP::Acl::Insert
Perform APPEND and COPY with the mailbox as the target.
Definition: acl.h:48
KIMAP::Acl::Custom5
Server-specific right 5.
Definition: acl.h:87
KIMAP::Acl::Custom6
Server-specific right 6.
Definition: acl.h:88
KIMAP::Acl::Custom7
Server-specific right 7.
Definition: acl.h:89
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:03 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs 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

Search



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