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

http://macfuse.googlecode.com/ · C++ Header · 65 lines · 30 code · 16 blank · 19 comment · 1 complexity · f6526f26ff74e7e40a8973ab39b0343c 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. // GDataContactConstants.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE
  19. #import <Foundation/Foundation.h>
  20. #import "GDataDefines.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATACONTACTCONSTANTS_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 kGDataContactServiceV2 _INITIALIZE_AS(@"2.0");
  31. _EXTERN NSString* const kGDataContactServiceV3 _INITIALIZE_AS(@"3.0");
  32. _EXTERN NSString* const kGDataContactDefaultServiceVersion _INITIALIZE_AS(@"3.0");
  33. _EXTERN NSString* const kGDataNamespaceContact _INITIALIZE_AS(@"http://schemas.google.com/contact/2008");
  34. _EXTERN NSString* const kGDataNamespaceContactPrefix _INITIALIZE_AS(@"gContact");
  35. _EXTERN NSString* const kGDataCategoryContact _INITIALIZE_AS(@"http://schemas.google.com/contact/2008#contact");
  36. _EXTERN NSString* const kGDataCategoryContactGroup _INITIALIZE_AS(@"http://schemas.google.com/contact/2008#group");
  37. _EXTERN NSString* const kGDataCategoryContactProfile _INITIALIZE_AS(@"http://schemas.google.com/contact/2008#profile");
  38. // rel values
  39. _EXTERN NSString* const kGDataContactHome _INITIALIZE_AS(@"http://schemas.google.com/g/2005#home");
  40. _EXTERN NSString* const kGDataContactWork _INITIALIZE_AS(@"http://schemas.google.com/g/2005#work");
  41. _EXTERN NSString* const kGDataContactOther _INITIALIZE_AS(@"http://schemas.google.com/g/2005#other");
  42. // link rel values
  43. _EXTERN NSString* const kGDataContactPhotoRel _INITIALIZE_AS(@"http://schemas.google.com/contacts/2008/rel#photo");
  44. _EXTERN NSString* const kGDataContactEditPhotoRel _INITIALIZE_AS(@"http://schemas.google.com/contacts/2008/rel#edit-photo"); // v1 only
  45. @interface GDataContactConstants : NSObject
  46. + (NSString *)coreProtocolVersionForServiceVersion:(NSString *)serviceVersion;
  47. + (NSDictionary *)contactNamespaces;
  48. @end
  49. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_CONTACTS_SERVICE