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

http://macfuse.googlecode.com/ · C++ Header · 49 lines · 15 code · 13 blank · 21 comment · 1 complexity · aa3c7569282f3da3263b2295f8d6a6ce MD5 · raw file

  1. /* Copyright (c) 2007 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. // GDataEmail.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
  19. #import "GDataObject.h"
  20. // email element
  21. // <gd:email label="Personal" address="fubar@gmail.com"/>
  22. //
  23. // http://code.google.com/apis/gdata/common-elements.html#gdEmail
  24. @interface GDataEmail : GDataObject <GDataExtension>
  25. + (GDataEmail *)emailWithLabel:(NSString *)label
  26. address:(NSString *)address;
  27. - (NSString *)label;
  28. - (void)setLabel:(NSString *)str;
  29. - (NSString *)address;
  30. - (void)setAddress:(NSString *)str;
  31. - (NSString *)rel;
  32. - (void)setRel:(NSString *)str;
  33. - (BOOL)isPrimary;
  34. - (void)setIsPrimary:(BOOL)flag;
  35. @end
  36. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE