/Source/externals/GData/Source/ACL/GDataACLKeyedRole.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 48 lines · 16 code · 10 blank · 22 comment · 3 complexity · 397c6a35011baa6eb948e9c8d3a0b4bc MD5 · raw file

  1. /* Copyright (c) 2010 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. // GDataKeyedRole.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 "GDataACLRole.h"
  22. // a key which specifies a role, such as
  23. //
  24. // <gAcl:withKey key="A123B">
  25. // <gAcl:role value='owner'></gAcl:role>
  26. // </gAcl:withKey>
  27. @interface GDataACLKeyedRole : GDataObject <GDataExtension>
  28. + (GDataACLKeyedRole *)keyedRoleWithKey:(NSString *)key
  29. value:(NSString *)value;
  30. - (NSString *)key;
  31. - (void)setKey:(NSString *)str;
  32. - (GDataACLRole *)role;
  33. - (void)setRole:(GDataACLRole *)obj;
  34. - (NSArray *)additionalRoles;
  35. - (void)setAdditionalRoles:(NSArray *)array;
  36. - (void)addAdditionalRole:(GDataACLAdditionalRole *)obj;
  37. @end
  38. #endif // !GDATA_REQUIRE_SERVICE_INCLUDE || GDATA_INCLUDE_*