PageRenderTime 12ms CodeModel.GetById 2ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

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