1 | /* |
2 | * Copyright (C) by Roeland Jago Douma <rullzer@owncloud.com> |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 2 of the License, or |
7 | * (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, but |
10 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
11 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
12 | * for more details. |
13 | */ |
14 | |
15 | #ifndef SHAREPERMISSIONS_H |
16 | #define SHAREPERMISSIONS_H |
17 | |
18 | #include <qglobal.h> |
19 | |
20 | namespace OCC { |
21 | |
22 | /** |
23 | * Possible permissions, must match the server permission constants |
24 | */ |
25 | enum SharePermission { |
26 | SharePermissionRead = 1, |
27 | SharePermissionUpdate = 2, |
28 | SharePermissionCreate = 4, |
29 | SharePermissionDelete = 8, |
30 | SharePermissionShare = 16, |
31 | SharePermissionDefault = 1 << 30 |
32 | }; |
33 | Q_DECLARE_FLAGS(SharePermissions, SharePermission) |
34 | Q_DECLARE_OPERATORS_FOR_FLAGS(SharePermissions) |
35 | |
36 | } // namespace OCC |
37 | |
38 | #endif |
39 | |