/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Photos/GDataEntryPhoto.h

http://macfuse.googlecode.com/ · C++ Header · 107 lines · 49 code · 29 blank · 29 comment · 1 complexity · 1adfec8d7eead45bc0985c781827b030 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. // GDataEntryPhoto.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE
  19. #import "GDataEntryPhotoBase.h"
  20. #import "GDataGeo.h"
  21. #import "GDataMediaGroup.h"
  22. #import "GDataEXIFTags.h"
  23. @interface GDataEntryPhoto : GDataEntryPhotoBase
  24. + (GDataEntryPhoto *)photoEntry;
  25. // uploading photo data
  26. - (void)setPhotoData:(NSData *)data; // data will retained by the entry
  27. - (NSData *)photoData;
  28. - (void)setPhotoMIMEType:(NSString *)str;
  29. - (NSString *)photoMIMEType;
  30. // getters and setters
  31. // to move a photo to another album, set the photo entry's albumID
  32. // to the album's GPhotoID and update the photo entry (with
  33. // fetchPhotoEntryByUpdatingEntry:)
  34. - (NSString *)albumID;
  35. - (void)setAlbumID:(NSString *)str;
  36. - (NSString *)checksum;
  37. - (void)setChecksum:(NSString *)str;
  38. - (NSNumber *)commentCount; // int
  39. - (void)setCommentCount:(NSNumber *)num;
  40. - (NSNumber *)commentsEnabled; // bool
  41. - (void)setCommentsEnabled:(NSNumber *)num;
  42. - (NSNumber *)height; // long long
  43. - (void)setHeight:(NSNumber *)num;
  44. - (NSNumber *)rotation; // int
  45. - (void)setRotation:(NSNumber *)num;
  46. - (NSNumber *)size; // long long
  47. - (void)setSize:(NSNumber *)num;
  48. - (GDataPhotoTimestamp *)timestamp; // use stringValue or date methods on timestamp
  49. - (void)setTimestamp:(GDataPhotoTimestamp *)str;
  50. - (NSNumber *)width; // long long
  51. - (void)setWidth:(NSNumber *)num;
  52. - (NSString *)videoStatus;
  53. - (void)setVideoStatus:(NSString *)str;
  54. // setGeoLocation requires an instance of a subclass of GDataGeo, not an
  55. // instance of GDataGeo; see GDataGeo.h
  56. - (GDataGeo *)geoLocation;
  57. - (void)setGeoLocation:(GDataGeo *)geo;
  58. - (GDataMediaGroup *)mediaGroup;
  59. - (void)setMediaGroup:(GDataMediaGroup *)obj;
  60. - (GDataEXIFTags *)EXIFTags;
  61. - (void)setEXIFTags:(GDataEXIFTags *)tags;
  62. //
  63. // search result elements introduced in V2
  64. //
  65. - (NSString *)albumDescription;
  66. - (void)setAlbumDescription:(NSString *)str;
  67. - (NSString *)albumTitle;
  68. - (void)setAlbumTitle:(NSString *)str;
  69. - (NSString *)snippet;
  70. - (void)setSnippet:(NSString *)str;
  71. // snippet type constants are in GDataPhotoConstants.h, like
  72. // kGDataPhotoSnippetTypeAlbumTitle
  73. - (NSString *)snippetType;
  74. - (void)setSnippetType:(NSString *)str;
  75. - (NSNumber *)truncated; // int, 0 or 1
  76. - (void)setTruncated:(NSNumber *)num;
  77. @end
  78. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE