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

http://macfuse.googlecode.com/ · C++ Header · 70 lines · 35 code · 17 blank · 18 comment · 1 complexity · ff5b039850c62d1d6cbe7857d5f75549 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. // GDataName.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
  19. #import "GDataObject.h"
  20. @interface GDataNameElement : GDataObject
  21. + (id)nameElementWithString:(NSString *)str;
  22. - (NSString *)stringValue;
  23. - (void)setStringValue:(NSString *)str;
  24. // an optional yomi attribute for pronunciation
  25. - (void)setYomi:(NSString *)str;
  26. - (NSString *)yomi;
  27. @end
  28. @interface GDataName : GDataObject <GDataExtension>
  29. + (GDataName *)name;
  30. + (GDataName *)nameWithFullNameString:(NSString *)str;
  31. + (GDataName *)nameWithPrefix:(NSString *)prefix
  32. givenString:(NSString *)first
  33. additionalString:(NSString *)middle
  34. familyString:(NSString *)last
  35. suffix:(NSString *)suffix;
  36. - (GDataNameElement *)additionalName;
  37. - (void)setAdditionalName:(GDataNameElement *)obj;
  38. - (void)setAdditionalNameWithString:(NSString *)str;
  39. - (GDataNameElement *)familyName;
  40. - (void)setFamilyName:(GDataNameElement *)obj;
  41. - (void)setFamilyNameWithString:(NSString *)str;
  42. - (GDataNameElement *)fullName;
  43. - (void)setFullName:(GDataNameElement *)obj;
  44. - (void)setFullNameWithString:(NSString *)str;
  45. - (GDataNameElement *)givenName;
  46. - (void)setGivenName:(GDataNameElement *)obj;
  47. - (void)setGivenNameWithString:(NSString *)str;
  48. - (NSString *)namePrefix;
  49. - (void)setNamePrefix:(NSString *)str;
  50. - (NSString *)nameSuffix;
  51. - (void)setNameSuffix:(NSString *)str;
  52. @end
  53. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE