2
* Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
3
* Copyright (c) 2010 Tobias Koenig <tokoe@kdab.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef MAILCOMMON_ACLUTILS_P_H
21
#define MAILCOMMON_ACLUTILS_P_H
25
namespace MailCommon {
30
* Returns the number of standard permissions available.
32
uint standardPermissionsCount();
35
* Returns the standard permissions at the given @p index.
37
KIMAP::Acl::Rights permissionsForIndex( uint index );
40
* Returns the index of the given standard @p permissions.
42
* If there are no matching permissions, @c -1 is returned.
44
int indexForPermissions( KIMAP::Acl::Rights permissions );
47
* Returns the i18n'd representation of the given @p permissions.
49
QString permissionsToUserString( KIMAP::Acl::Rights permissions );