PageRenderTime 31ms CodeModel.GetById 13ms app.highlight 13ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 102 lines | 57 code | 22 blank | 23 comment | 1 complexity | d744441cda16735c464df0273301a5a3 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//
 17//  GDataWho.h
 18//
 19
 20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE
 21
 22#import "GDataObject.h"
 23#import "GDataValueConstruct.h"
 24
 25#undef _EXTERN
 26#undef _INITIALIZE_AS
 27#ifdef GDATAWHO_DEFINE_GLOBALS
 28#define _EXTERN
 29#define _INITIALIZE_AS(x) =x
 30#else
 31#define _EXTERN GDATA_EXTERN
 32#define _INITIALIZE_AS(x)
 33#endif
 34
 35_EXTERN NSString* const kGDataWhoEventAttendee  _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.attendee");
 36_EXTERN NSString* const kGDataWhoEventOrganizer _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.organizer");
 37_EXTERN NSString* const kGDataWhoEventSpeaker   _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.speaker");
 38_EXTERN NSString* const kGDataWhoEventPerformer _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.performer");
 39
 40_EXTERN NSString* const kGDataWhoAttendeeTypeRequired     _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.required");
 41_EXTERN NSString* const kGDataWhoAttendeeTypeOptional     _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.optional");
 42
 43_EXTERN NSString* const kGDataWhoAttendeeStatusInvited    _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.invited");
 44_EXTERN NSString* const kGDataWhoAttendeeStatusAccepted   _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.accepted");
 45_EXTERN NSString* const kGDataWhoAttendeeStatusTentative  _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.tentative");
 46_EXTERN NSString* const kGDataWhoAttendeeStatusDeclined   _INITIALIZE_AS(@"http://schemas.google.com/g/2005#event.declined");
 47
 48_EXTERN NSString* const kGDataWhoTaskAssignedTo _INITIALIZE_AS(@"http://schemas.google.com/g/2005#task.assigned-to");
 49
 50_EXTERN NSString* const kGDataWhoMessageFrom    _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.from");
 51_EXTERN NSString* const kGDataWhoMessageTo      _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.to");
 52_EXTERN NSString* const kGDataWhoMessageCC      _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.cc");
 53_EXTERN NSString* const kGDataWhoMessageBCC     _INITIALIZE_AS(@"http://schemas.google.com/g/2005#message.bcc");
 54
 55@class GDataEntryLink;
 56
 57@interface GDataAttendeeStatus : GDataValueConstruct <GDataExtension>
 58+ (NSString *)extensionElementURI;
 59+ (NSString *)extensionElementPrefix;
 60+ (NSString *)extensionElementLocalName;
 61@end
 62
 63@interface GDataAttendeeType : GDataValueConstruct <GDataExtension>
 64+ (NSString *)extensionElementURI;
 65+ (NSString *)extensionElementPrefix;
 66+ (NSString *)extensionElementLocalName;
 67@end
 68
 69
 70// a who entry, as in
 71// <gd:who rel="http://schemas.google.com/g/2005#event.organizer" valueString="Fred Flintstone" email="fred@domain.com">
 72//   <gd:attendeeStatus value="http://schemas.google.com/g/2005#event.accepted"/>
 73// </gd:who>
 74//
 75// http://code.google.com/apis/gdata/common-elements.html#gdWho
 76@interface GDataWho : GDataObject <GDataExtension> {
 77}
 78
 79+ (GDataWho *)whoWithRel:(NSString *)rel
 80                    name:(NSString *)valueString
 81                   email:(NSString *)email; // name and email may be nil
 82
 83- (NSString *)rel;
 84- (void)setRel:(NSString *)str;
 85
 86- (NSString *)email;
 87- (void)setEmail:(NSString *)str;
 88
 89- (NSString *)stringValue; // gets the "valueString" XML attribute
 90- (void)setStringValue:(NSString *)str; // sets the "valueString" XML attribute
 91
 92- (GDataAttendeeType *)attendeeType;
 93- (void)setAttendeeType:(GDataAttendeeType *)val;
 94
 95- (GDataAttendeeStatus *)attendeeStatus;
 96- (void)setAttendeeStatus:(GDataAttendeeStatus *)val;
 97
 98- (GDataEntryLink *)entryLink;
 99- (void)setEntryLink:(GDataEntryLink *)entryLink;
100@end
101
102#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CALENDAR_SERVICE