/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Contacts/GDataContactElements.h

http://macfuse.googlecode.com/ · C++ Header · 110 lines · 54 code · 22 blank · 34 comment · 1 complexity · ebe72dab890ccb812c8190b8d8519921 MD5 · raw file

  1. /* Copyright (c) 2009 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. // GDataContactElements.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
  19. #import "GDataObject.h"
  20. #import "GDataValueConstruct.h"
  21. #import "GDataContactLink.h"
  22. #undef _EXTERN
  23. #undef _INITIALIZE_AS
  24. #ifdef GDATACONTACTELEMENTS_DEFINE_GLOBALS
  25. #define _EXTERN
  26. #define _INITIALIZE_AS(x) =x
  27. #else
  28. #define _EXTERN GDATA_EXTERN
  29. #define _INITIALIZE_AS(x)
  30. #endif
  31. // gender
  32. _EXTERN NSString* kGDataContactGenderFemale _INITIALIZE_AS(@"female");
  33. _EXTERN NSString* kGDataContactGenderMale _INITIALIZE_AS(@"male");
  34. // calendarLink rel
  35. _EXTERN NSString* kGDataContactCalendarLinkHome _INITIALIZE_AS(@"home");
  36. _EXTERN NSString* kGDataContactCalendarLinkWork _INITIALIZE_AS(@"work");
  37. _EXTERN NSString* kGDataContactCalendarLinkFreeBusy _INITIALIZE_AS(@"free-busy");
  38. // websiteLink rel
  39. _EXTERN NSString* kGDataContactWebsiteLinkBlog _INITIALIZE_AS(@"blog");
  40. _EXTERN NSString* kGDataContactWebsiteLinkFTP _INITIALIZE_AS(@"ftp");
  41. _EXTERN NSString* kGDataContactWebsiteLinkHome _INITIALIZE_AS(@"home");
  42. _EXTERN NSString* kGDataContactWebsiteLinkHomePage _INITIALIZE_AS(@"home-page");
  43. _EXTERN NSString* kGDataContactWebsiteLinkOther _INITIALIZE_AS(@"other");
  44. _EXTERN NSString* kGDataContactWebsiteLinkProfile _INITIALIZE_AS(@"profile");
  45. _EXTERN NSString* kGDataContactWebsiteLinkWork _INITIALIZE_AS(@"work");
  46. // billing, like <gContact:billingInformation>Blah</gContact:billingInformation>
  47. @interface GDataContactBillingInformation : GDataValueElementConstruct <GDataExtension>
  48. @end
  49. // birthday, like <gContact:birthday when="1-Jan-1992" />
  50. @interface GDataContactBirthday : GDataValueConstruct <GDataExtension>
  51. @end
  52. // related calendar link
  53. @interface GDataContactCalendarLink : GDataContactLink <GDataExtension>
  54. @end
  55. // directory server, like <gContact:directoryServer>directory.domain.com</gContact:directoryServer>
  56. @interface GDataContactDirectoryServer : GDataValueElementConstruct <GDataExtension>
  57. @end
  58. // gender, like <gContact:gender value="female" />
  59. @interface GDataContactGender : GDataValueConstruct <GDataExtension>
  60. @end
  61. // hobby, like <gContact:hobby>eating crackers</gContact:hobby> // TODO - sure it's an element, not an attribute?
  62. @interface GDataContactHobby : GDataValueElementConstruct <GDataExtension>
  63. @end
  64. // initials, like <gContact:initials>I.M.</gContact:initials> // TODO - sure it's an element, not an attribute?
  65. @interface GDataContactInitials : GDataValueElementConstruct <GDataExtension>
  66. @end
  67. // maiden name, like <gContact:maidenName>Sosnick</gContact:maidenName>
  68. @interface GDataContactMaidenName : GDataValueElementConstruct <GDataExtension>
  69. @end
  70. // mileage, like <gContact:mileage>20 km/l</gContact:mileage>
  71. @interface GDataContactMileage : GDataValueElementConstruct <GDataExtension>
  72. @end
  73. // nickname, like <gContact:nickname>Freddy</gContact:nickname>
  74. @interface GDataContactNickname : GDataValueElementConstruct <GDataExtension>
  75. @end
  76. // occupation, like <gContact:occupation>Chef</gContact:occupation>
  77. @interface GDataContactOccupation : GDataValueElementConstruct <GDataExtension>
  78. @end
  79. // short name, like <gContact:shortName>Fred</gContact:shortName>
  80. @interface GDataContactShortName : GDataValueElementConstruct <GDataExtension>
  81. @end
  82. // subject, like <gContact:subject>data</gContact:subject>
  83. @interface GDataContactSubject : GDataValueElementConstruct <GDataExtension>
  84. @end
  85. // related website link
  86. @interface GDataContactWebsiteLink : GDataContactLink <GDataExtension>
  87. @end
  88. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE