ECACL.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright 2005 - 2016 Zarafa and its licensors
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License, version 3,
  6. * as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Affero General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Affero General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. #ifndef ECACL_INCLUDED
  18. #define ECACL_INCLUDED
  19. #include <kopano/zcdefs.h>
  20. #include <string>
  21. namespace KC {
  22. enum ACLRIGHTS {
  23. RIGHTS_EDIT_OWN = 0x8,
  24. RIGHTS_EDIT_ALL = 0x20,
  25. RIGHTS_DELETE_OWN = 0x10,
  26. RIGHTS_DELETE_ALL = 0x40,
  27. RIGHTS_READ_ITEMS = 0x1,
  28. RIGHTS_CREATE_ITEMS = 0x2,
  29. RIGHTS_CREATE_SUBFOLDERS = 0x80,
  30. RIGHTS_FOLDER_OWNER = 0x100,
  31. RIGHTS_FOLDER_CONTACT = 0x200,
  32. RIGHTS_FOLDER_VISIBLE = 0x400,
  33. RIGHTS_NONE = 0,
  34. ROLE_OWNER = 0x5fb,
  35. ROLE_PUBLISH_EDITOR = 0x4e3,
  36. ROLE_EDITOR = 0x463,
  37. ROLE_PUBLISH_AUTHOR = 0x49b,
  38. ROLE_AUTHOR = 0x41b,
  39. ROLE_NONEDITING_AUTHOR = 0x413,
  40. ROLE_REVIEWER = 0x401,
  41. ROLE_CONTRIBUTOR = 0x402,
  42. ROLE_NONE = 0x400
  43. };
  44. extern _kc_export std::string AclRightsToString(unsigned int rights);
  45. } /* namespace */
  46. #endif // ndef ECACL_INCLUDED