KIMAP Library
22 #include <QtCore/QByteArray>
23 #include <QtCore/QMap>
24 #include <KDE/KGlobal>
59 QMap<char, Right> map;
62 K_GLOBAL_STATIC( RightsMap, globalRights )
71 if (
string.isEmpty() ) {
76 if (
string[0] ==
'+' ||
string[0] ==
'-' ) {
80 for (
int i = pos; i <
string.size(); i++ ) {
81 if ( globalRights->map.contains(
string[i] ) ) {
82 result|= globalRights->map[
string[i]];
94 if ( rights & right ) {
95 result += globalRights->map.key( (
Right)right );
104 Rights normalized = rights;
105 if ( normalized & Create ) {
106 normalized |= ( CreateMailbox | DeleteMailbox );
107 normalized &= ~Create;
109 if ( normalized & Delete ) {
110 normalized |= ( DeleteMessage | Expunge );
111 normalized &= ~Delete;
119 if ( denormalized & ( CreateMailbox | DeleteMailbox ) ) {
120 denormalized |= Create;
122 if ( denormalized & ( DeleteMessage | Expunge ) ) {
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.