PageRenderTime 48ms CodeModel.GetById 38ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

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