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

http://macfuse.googlecode.com/ · C++ Header · 116 lines · 68 code · 28 blank · 20 comment · 1 complexity · 0d3da86d6e37254d3ed0657ceb13a6d9 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. // GDataEntryCalendarEvent.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
  19. #import "GDataEntryEvent.h"
  20. #import "GDataWho.h"
  21. #import "GDataLink.h"
  22. #import "GDataExtendedProperty.h"
  23. #undef _EXTERN
  24. #undef _INITIALIZE_AS
  25. #ifdef GDATACALENDAREVENT_DEFINE_GLOBALS
  26. #define _EXTERN
  27. #define _INITIALIZE_AS(x) =x
  28. #else
  29. #define _EXTERN GDATA_EXTERN
  30. #define _INITIALIZE_AS(x)
  31. #endif
  32. _EXTERN NSString* const kGDataNamespaceGCal _INITIALIZE_AS(@"http://schemas.google.com/gCal/2005");
  33. _EXTERN NSString* const kGDataNamespaceGCalPrefix _INITIALIZE_AS(@"gCal");
  34. _EXTERN NSString* const kGDataCategoryCalendar _INITIALIZE_AS(@"http://schemas.google.com/gCal/2005#calendarmeta");
  35. _EXTERN NSString* const kGDataCategoryCalendarSettings _INITIALIZE_AS(@"http://schemas.google.com/gCal/2005#settings");
  36. // CalendarEventEntry extensions
  37. @interface GDataResourceProperty : GDataBoolValueConstruct <GDataExtension>
  38. + (NSString *)extensionElementURI;
  39. + (NSString *)extensionElementPrefix;
  40. + (NSString *)extensionElementLocalName;
  41. @end
  42. // CalendarEventEntry categories for extensions
  43. @interface GDataWho (GDataCalendarEntryEventExtensions)
  44. - (NSArray *)resourceProperties;
  45. - (void)setResourceProperties:(NSArray *)arr;
  46. - (void)addResourceProperty:(GDataResourceProperty *)obj;
  47. - (NSNumber *)numberOfAdditionalGuests; // int
  48. - (void)setNumberOfAdditionalGuests:(NSNumber *)num;
  49. @end
  50. @class GDataWebContent;
  51. @interface GDataLink (GDataCalendarEntryEventExtensions)
  52. - (NSArray *)webContents;
  53. - (void)setWebContents:(NSArray *)arr;
  54. - (void)addWebContent:(GDataWebContent *)obj;
  55. @end
  56. @interface GDataEntryCalendarEvent : GDataEntryEvent
  57. + (NSDictionary *)calendarEventNamespaces;
  58. + (GDataEntryCalendarEvent *)calendarEvent;
  59. - (BOOL)shouldSendEventNotifications;
  60. - (void)setShouldSendEventNotifications:(BOOL)flag;
  61. - (BOOL)isPrivateCopy;
  62. - (void)setIsPrivateCopy:(BOOL)flag;
  63. - (BOOL)isQuickAdd;
  64. - (void)setIsQuickAdd:(BOOL)flag;
  65. - (NSString *)suppressReplyNotificationTypes;
  66. - (void)setSuppressReplyNotificationTypes:(NSString *)str;
  67. // for sync events, the iCal UID and sequence number need to be honored
  68. - (BOOL)isSyncEvent;
  69. - (void)setIsSyncEvent:(BOOL)flag;
  70. - (NSString *)iCalUID;
  71. - (void)setICalUID:(NSString *)str;
  72. - (BOOL)canGuestsModify; // default NO
  73. - (void)setCanGuestsModify:(BOOL)flag;
  74. - (BOOL)canGuestsInviteOthers; // default YES
  75. - (void)setCanGuestsInviteOthers:(BOOL)flag;
  76. - (BOOL)canGuestsSeeGuests; // default YES
  77. - (void)setCanGuestsSeeGuests:(BOOL)flag;
  78. - (BOOL)canAnyoneAddSelf; // default NO
  79. - (void)setCanAnyoneAddSelf:(BOOL)flag;
  80. - (NSNumber *)sequenceNumber; // int
  81. - (void)setSequenceNumber:(NSNumber *)num;
  82. - (NSArray *)extendedProperties;
  83. - (void)setExtendedProperties:(NSArray *)arr;
  84. - (void)addExtendedProperty:(GDataExtendedProperty *)obj;
  85. - (GDataLink *)webContentLink;
  86. - (GDataWebContent *)webContent;
  87. @end
  88. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE