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

http://macfuse.googlecode.com/ · C++ Header · 48 lines · 16 code · 11 blank · 21 comment · 2 complexity · 6e258265672ff610b636a943829338c0 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. // GDataWhen.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE \
  19. || GDATA_INCLUDE_CONTACTS_SERVICE
  20. #import "GDataObject.h"
  21. #import "GDataDateTime.h"
  22. // when element, as in
  23. // <gd:when startTime="2005-06-06" endTime="2005-06-07" valueString="This weekend"/>
  24. //
  25. // http://code.google.com/apis/gdata/common-elements.html#gdWhen
  26. @interface GDataWhen : GDataObject <GDataExtension> {
  27. }
  28. + (GDataWhen *)whenWithStartTime:(GDataDateTime *)startTime
  29. endTime:(GDataDateTime *)endTime;
  30. - (GDataDateTime *)startTime;
  31. - (void)setStartTime:(GDataDateTime *)cdate;
  32. - (GDataDateTime *)endTime;
  33. - (void)setEndTime:(GDataDateTime *)cdate;
  34. - (NSString *)value;
  35. - (void)setValue:(NSString *)str;
  36. @end
  37. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE