OCConstants.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // OCConstants.h
  3. // Owncloud iOs Client
  4. //
  5. // Copyright (C) 2016, ownCloud GmbH. ( http://www.owncloud.org/ )
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining a copy
  8. // of this software and associated documentation files (the "Software"), to deal
  9. // in the Software without restriction, including without limitation the rights
  10. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. // copies of the Software, and to permit persons to whom the Software is
  12. // furnished to do so, subject to the following conditions:
  13. // The above copyright notice and this permission notice shall be included in
  14. // all copies or substantial portions of the Software.
  15. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. // THE SOFTWARE.
  22. //
  23. #define k_redirected_code_1 301
  24. #define k_redirected_code_2 302
  25. #define k_redirected_code_3 307
  26. //The result of the sum of those values means the permissions that have a share file
  27. //permissions - (int) 1 = read; 2 = update; 4 = create; 8 = delete; 16 = share; 31 = all (default: 31, for public shares: 1)
  28. #define k_read_share_permission 1
  29. #define k_update_share_permission 2
  30. #define k_create_share_permission 4
  31. #define k_delete_share_permission 8
  32. #define k_share_share_permission 16
  33. #define k_min_file_share_permission 1
  34. #define k_max_file_share_permission 19
  35. #define k_min_folder_share_permission 1
  36. #define k_max_folder_share_permission 31
  37. #define k_default_file_remote_share_permission_no_support_share_option 3
  38. #define k_default_folder_remote_share_permission_no_support_share_option 15
  39. #define k_max_redirections_allow 5