/Source/externals/GData/Source/ACL/GDataACLScope.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 60 lines · 26 code · 13 blank · 21 comment · 3 complexity · 816006ba73452d706fb89d5a3e2e6b4e 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. // GDataScope.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. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATAACLSCOPE_DEFINE_GLOBALS
  24. #define _EXTERN
  25. #define _INITIALIZE_AS(x) =x
  26. #else
  27. #define _EXTERN GDATA_EXTERN
  28. #define _INITIALIZE_AS(x)
  29. #endif
  30. _EXTERN NSString* const kGDataScopeTypeUser _INITIALIZE_AS(@"user");
  31. _EXTERN NSString* const kGDataScopeTypeDomain _INITIALIZE_AS(@"domain");
  32. _EXTERN NSString* const kGDataScopeTypeDefault _INITIALIZE_AS(@"default");
  33. _EXTERN NSString* const kGDataScopeTypeGroup _INITIALIZE_AS(@"group");
  34. // an element with type and value attributes, as in
  35. // <gAcl:scope type='user' value='user@gmail.com'></gAcl:scope>
  36. //
  37. // http://code.google.com/apis/calendar/reference.html#gacl_reference
  38. @interface GDataACLScope : GDataObject <GDataExtension>
  39. + (GDataACLScope *)scopeWithType:(NSString *)type value:(NSString *)value;
  40. - (NSString *)value;
  41. - (void)setValue:(NSString *)str;
  42. - (NSString *)type;
  43. - (void)setType:(NSString *)str;
  44. - (NSString *)name;
  45. - (void)setName:(NSString *)str;
  46. @end
  47. #endif // !GDATA_REQUIRE_SERVICE_INCLUDE || GDATA_INCLUDE_*