/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Photos/GDataPhotoConstants.m

http://macfuse.googlecode.com/ · Objective C · 56 lines · 22 code · 13 blank · 21 comment · 1 complexity · 001c36003252169dba8d50956ce37974 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. // GDataPhotoConstants.m
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE
  19. #define GDATAPHOTOCONSTANTS_DEFINE_GLOBALS 1
  20. #import "GDataPhotoConstants.h"
  21. #import "GDataEntryBase.h"
  22. #import "GDataGeo.h"
  23. #import "GDataMediaGroup.h"
  24. @implementation GDataPhotoConstants
  25. + (NSDictionary *)photoNamespaces {
  26. NSDictionary *baseNS = [GDataEntryBase baseGDataNamespaces];
  27. NSMutableDictionary *namespaces;
  28. namespaces = [NSMutableDictionary dictionaryWithDictionary:baseNS];
  29. // "gphoto"
  30. [namespaces setObject:kGDataNamespacePhotos
  31. forKey:kGDataNamespacePhotosPrefix];
  32. // "exif"
  33. [namespaces setObject:kGDataNamespacePhotosEXIF
  34. forKey:kGDataNamespacePhotosEXIFPrefix];
  35. // "media"
  36. [namespaces setObject:kGDataNamespaceMedia
  37. forKey:kGDataNamespaceMediaPrefix];
  38. // geo, georss, gml
  39. [namespaces addEntriesFromDictionary:[GDataGeo geoNamespaces]];
  40. return namespaces;
  41. }
  42. @end
  43. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE