/Source/externals/GData/Source/Clients/Photos/GDataEXIFTags.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 68 lines · 21 code · 15 blank · 32 comment · 1 complexity · abb7b848d5966e5c3ddebe3ec3e439f6 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. // GDataExifTags.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE
  19. #import "GDataObject.h"
  20. #import "GDataValueConstruct.h"
  21. //
  22. // an exif tag, like <exif:name>value</exif:name>
  23. //
  24. @interface GDataEXIFTag : GDataValueElementConstruct <GDataExtension>
  25. + (GDataEXIFTag *)tagWithName:(NSString *)name
  26. value:(NSString *)value;
  27. - (NSString *)name;
  28. @end
  29. //
  30. // a group of exif tags, like
  31. //
  32. // <exif:tags>
  33. // <exif:fstop>0.0</exif:fstop>
  34. // <exif:make>Nokia</exif:make>
  35. // </exif:tags>
  36. //
  37. @interface GDataEXIFTags : GDataObject <NSCopying, GDataExtension> {
  38. }
  39. + (GDataEXIFTags *)EXIFTags;
  40. - (NSArray *)tags;
  41. - (void)setTags:(NSArray *)tags;
  42. - (void)addTag:(GDataEXIFTag *)tag;
  43. // utilities for accessing individual tags
  44. - (NSString *)valueForTagName:(NSString *)name;
  45. - (void)removeTagWithName:(NSString *)name;
  46. - (void)setTagWithName:(NSString *)name
  47. textValue:(NSString *)value;
  48. // tagDictionary returns a dictionary of exif tags, with
  49. // tag names as keys, and tag values as objects.
  50. // This is to facilitate key-value coding access to the tags.
  51. - (NSDictionary *)tagDictionary;
  52. @end
  53. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE