Beautify flags

This commit is contained in:
Hannah von Reth 2020-06-02 14:46:36 +02:00 committed by Kevin Ottens
parent 2b95f919ad
commit c92f70d4ff
No known key found for this signature in database
GPG Key ID: 074BBBCB8DECC9E2

View File

@ -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)