/core/externals/update-engine/externals/gdata-objectivec-client/Source/Introspection/GDataAtomCategoryGroup.h

http://macfuse.googlecode.com/ · C++ Header · 52 lines · 13 code · 11 blank · 28 comment · 1 complexity · f2eabd8b7337c6b7006007e6ec5aa49e MD5 · raw file

  1. /* Copyright (c) 2009 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. // GDataAtomCategoryGroup.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SERVICE_INTROSPECTION
  19. #import "GDataObject.h"
  20. // a collection in a service document for introspection,
  21. // per http://tools.ietf.org/html/rfc5023#section-7.2
  22. //
  23. // <categories fixed="yes">
  24. // <atom:category scheme="http://example.org/extra-cats/" term="joke" />
  25. // <atom:category scheme="http://example.org/extra-cats/" term="serious" />
  26. // </categories>
  27. //
  28. // or
  29. //
  30. // <categories href="http://example.com/cats/forMain.cats" />
  31. @interface GDataAtomCategoryGroup : GDataObject <GDataExtension>
  32. - (NSString *)href;
  33. - (void)setHref:(NSString *)str;
  34. - (NSString *)scheme;
  35. - (void)setScheme:(NSString *)str;
  36. - (BOOL)isFixed;
  37. - (void)setIsFixed:(BOOL)flag;
  38. - (NSArray *)categories; // array of GDataCategory objects
  39. - (void)setCategories:(NSArray *)array;
  40. @end
  41. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SERVICE_INTROSPECTION