/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Calendar/GDataReminder.h

http://macfuse.googlecode.com/ · C++ Header · 68 lines · 31 code · 13 blank · 24 comment · 1 complexity · 1c9d8690e650650795e0300aa36fe5c4 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. // GDataReminder.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
  19. #import "GDataObject.h"
  20. #undef _EXTERN
  21. #undef _INITIALIZE_AS
  22. #ifdef GDATAREMINDER_DEFINE_GLOBALS
  23. #define _EXTERN
  24. #define _INITIALIZE_AS(x) =x
  25. #else
  26. #define _EXTERN GDATA_EXTERN
  27. #define _INITIALIZE_AS(x)
  28. #endif
  29. // When reading reminders from a feed, "none" and "all" do not apply.
  30. // For an explanation of setting reminder methods when writing an event,
  31. // see the comments at the top of the Java client library file Reminder.java
  32. _EXTERN NSString* const kGDataReminderMethodSMS _INITIALIZE_AS(@"sms");
  33. _EXTERN NSString* const kGDataReminderMethodEmail _INITIALIZE_AS(@"email");
  34. _EXTERN NSString* const kGDataReminderMethodAlert _INITIALIZE_AS(@"alert");
  35. _EXTERN NSString* const kGDataReminderMethodNone _INITIALIZE_AS(@"none");
  36. _EXTERN NSString* const kGDataReminderMethodAll _INITIALIZE_AS(@"all");
  37. // reminder, as in
  38. // <gd:reminder absoluteTime="2005-06-06T16:55:00-08:00" method="sms" />
  39. //
  40. // http://code.google.com/apis/gdata/common-elements.html#gdReminder
  41. @interface GDataReminder : GDataObject <GDataExtension> {
  42. }
  43. + (GDataReminder *)reminder;
  44. - (NSString *)days;
  45. - (void)setDays:(NSString *)str;
  46. - (NSString *)hours;
  47. - (void)setHours:(NSString *)str;
  48. - (NSString *)minutes;
  49. - (void)setMinutes:(NSString *)str;
  50. - (NSString *)method;
  51. - (void)setMethod:(NSString *)str; // use kGDataReminderMethod strings defined above
  52. - (GDataDateTime *)absoluteTime;
  53. - (void)setAbsoluteTime:(GDataDateTime *)cdate;
  54. @end
  55. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE