/Source/externals/GData/Source/Elements/GDataGeoPt.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 64 lines · 30 code · 11 blank · 23 comment · 1 complexity · d646a61b86ec61df1284b14ca20ebbaf MD5 · raw file

  1. /* Copyright (c) 2007 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. // GDataGeoPt.h
  17. //
  18. // NOTE: As of July 2007, GDataGeoPt is deprecated. Use GDataGeo instead.
  19. //
  20. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
  21. #import "GDataObject.h"
  22. @class GDataDateTime;
  23. // geoPt element, as in
  24. // <gd:geoPt lat="27.98778" lon="86.94444" elev="8850.0"/>
  25. //
  26. // http://code.google.com/apis/gdata/common-elements.html#gdGeoPt
  27. @interface GDataGeoPt : GDataObject <NSCopying, GDataExtension> {
  28. NSString *label_;
  29. NSNumber *lat_;
  30. NSNumber *lon_;
  31. NSNumber *elev_;
  32. GDataDateTime* time_;
  33. }
  34. + (GDataGeoPt *)geoPtWithLabel:(NSString *)label
  35. lat:(NSNumber *)lat
  36. lon:(NSNumber *)lon
  37. elev:(NSNumber *)elev
  38. time:(GDataDateTime *)aTime;
  39. - (id)initWithXMLElement:(NSXMLElement *)element
  40. parent:(GDataObject *)parent;
  41. - (NSXMLElement *)XMLElement;
  42. - (NSString *)label;
  43. - (void)setLabel:(NSString *)str;
  44. - (NSNumber *)lat;
  45. - (void)setLat:(NSNumber *)val;
  46. - (NSNumber *)lon;
  47. - (void)setLon:(NSNumber *)val;
  48. - (NSNumber *)elev;
  49. - (void)setElev:(NSNumber *)val;
  50. - (GDataDateTime *)time;
  51. - (void)setTime:(GDataDateTime *)cdate;
  52. @end
  53. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE