mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Beautify flags
This commit is contained in:
parent
2b95f919ad
commit
c92f70d4ff
@ -23,12 +23,12 @@ namespace OCC {
|
||||
* Possible permissions, must match the server permission constants
|
||||
*/
|
||||
enum SharePermission {
|
||||
SharePermissionRead = 1,
|
||||
SharePermissionUpdate = 2,
|
||||
SharePermissionCreate = 4,
|
||||
SharePermissionDelete = 8,
|
||||
SharePermissionShare = 16,
|
||||
SharePermissionDefault = 31
|
||||
SharePermissionRead = 1 << 0,
|
||||
SharePermissionUpdate = 1 << 1,
|
||||
SharePermissionCreate = 1 << 2,
|
||||
SharePermissionDelete = 1 << 3,
|
||||
SharePermissionShare = 1 << 4,
|
||||
SharePermissionDefault = 1 << 30
|
||||
};
|
||||
Q_DECLARE_FLAGS(SharePermissions, SharePermission)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(SharePermissions)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user