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