• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 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 namespace KIMAP {
26 
30 namespace Acl {
31 
35 enum Right {
36  None = 0x000000,
38  Lookup = 0x000001,
40  Read = 0x000002,
42  KeepSeen = 0x000004,
44  Write = 0x000008,
46  Insert = 0x000010,
51  Post = 0x000020,
53  Create = 0x000040,
59  CreateMailbox = 0x000080,
61  DeleteMailbox = 0x000100,
63  DeleteMessage = 0x000200,
65  Delete = 0x000400,
67  Admin = 0x000800,
73  Expunge = 0x001000,
79  WriteShared = 0x002000,
80  Custom0 = 0x004000,
81  Custom1 = 0x008000,
82  Custom2 = 0x010000,
83  Custom3 = 0x020000,
84  Custom4 = 0x040000,
85  Custom5 = 0x080000,
86  Custom6 = 0x100000,
87  Custom7 = 0x200000,
88  Custom8 = 0x400000,
89  Custom9 = 0x800000
90 };
91 
92 Q_DECLARE_FLAGS( Rights, Right )
93 
94 
99 KIMAP_EXPORT Rights normalizedRights( Rights rights );
100 
105 KIMAP_EXPORT Rights denormalizedRights( Rights rights );
106 
112 KIMAP_EXPORT QByteArray rightsToString( Rights rights );
120 KIMAP_EXPORT Rights rightsFromString( const QByteArray &string );
121 
122 }
123 }
124 
125 Q_DECLARE_OPERATORS_FOR_FLAGS( KIMAP::Acl::Rights )
126 
127 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:25:16 by doxygen 1.8.3.1 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.10.5 API Reference

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