/core/externals/update-engine/externals/gdata-objectivec-client/Source/ACL/GDataACLRole.h

http://macfuse.googlecode.com/ · C++ Header · 62 lines · 29 code · 12 blank · 21 comment · 3 complexity · 3c1f2bbac7bd070ff1d6f0dd5eef6b78 MD5 · raw file

  1. /* Copyright (c) 2007-2008 Google Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. //
  16. // GDataRole.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ACLS \
  19. || GDATA_INCLUDE_CALENDAR_SERVICE || GDATA_INCLUDE_DOCS_SERVICE
  20. #import "GDataObject.h"
  21. #import "GDataValueConstruct.h"
  22. #undef _EXTERN
  23. #undef _INITIALIZE_AS
  24. #ifdef GDATAACLROLE_DEFINE_GLOBALS
  25. #define _EXTERN
  26. #define _INITIALIZE_AS(x) =x
  27. #else
  28. #define _EXTERN GDATA_EXTERN
  29. #define _INITIALIZE_AS(x)
  30. #endif
  31. _EXTERN NSString* const kGDataRoleNone _INITIALIZE_AS(@"none");
  32. _EXTERN NSString* const kGDataRolePeeker _INITIALIZE_AS(@"peeker");
  33. _EXTERN NSString* const kGDataRoleReader _INITIALIZE_AS(@"reader");
  34. _EXTERN NSString* const kGDataRoleWriter _INITIALIZE_AS(@"writer");
  35. _EXTERN NSString* const kGDataRoleOwner _INITIALIZE_AS(@"owner");
  36. _EXTERN NSString* const kGDataRoleCommenter _INITIALIZE_AS(@"commenter");
  37. // an element with a value attribute, as in
  38. // <gAcl:role value='owner'></gAcl:role>
  39. //
  40. // http://code.google.com/apis/calendar/reference.html#gacl_reference
  41. @interface GDataACLRoleBase : GDataValueConstruct
  42. + (id)roleWithValue:(NSString *)value;
  43. - (NSString *)value;
  44. - (void)setValue:(NSString *)str;
  45. @end
  46. @interface GDataACLRole : GDataACLRoleBase <GDataExtension>
  47. @end
  48. @interface GDataACLAdditionalRole : GDataACLRoleBase <GDataExtension>
  49. @end
  50. #endif // !GDATA_REQUIRE_SERVICE_INCLUDE || GDATA_INCLUDE_*