/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataWhere.h

http://macfuse.googlecode.com/ · C++ Header · 66 lines · 28 code · 14 blank · 24 comment · 2 complexity · 20113187a6146cb7e2981c5a5110583b 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. // GDataWhere.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE \
  19. || GDATA_INCLUDE_CONTACTS_SERVICE
  20. #import "GDataObject.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATAWHERE_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. // rel values
  31. _EXTERN NSString* const kGDataEventWhereEventLocation _INITIALIZE_AS(nil); // use the enclosing event's location
  32. _EXTERN NSString* const kGDataEventWhereAlternate _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.alternate");
  33. _EXTERN NSString* const kGDataEventWhereParking _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.parking");
  34. @class GDataEntryLink;
  35. // where element, as in
  36. // <gd:where rel="http://schemas.google.com/g/2005#event" valueString="Joe's Pub">
  37. // <gd:entryLink href="http://local.example.com/10018/JoesPub">
  38. // </gd:where>
  39. //
  40. // http://code.google.com/apis/gdata/common-elements.html#gdWhere
  41. @interface GDataWhere : GDataObject <GDataExtension>
  42. + (GDataWhere *)whereWithString:(NSString *)str;
  43. - (NSString *)rel;
  44. - (void)setRel:(NSString *)str;
  45. - (NSString *)label;
  46. - (void)setLabel:(NSString *)str;
  47. - (NSString *)stringValue; // gets the "valueString" XML attribute
  48. - (void)setStringValue:(NSString *)str; // sets the "valueString" XML attribute
  49. - (GDataEntryLink *)entryLink;
  50. - (void)setEntryLink:(GDataEntryLink *)entryLink;
  51. @end
  52. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_*_SERVICE