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

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 182 lines · 82 code · 39 blank · 61 comment · 1 complexity · 3ef3821ee9d11d747ea7eca6f42ffd07 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. // GDataPhotoElements.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE
  19. #import "GDataObject.h"
  20. #import "GDataValueConstruct.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATAPHOTOELEMENTS_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. // values for GDataPhotoAccess
  31. _EXTERN NSString* const kGDataPhotoAccessPrivate _INITIALIZE_AS(@"private");
  32. _EXTERN NSString* const kGDataPhotoAccessProtected _INITIALIZE_AS(@"protected"); // "sign-in required"
  33. _EXTERN NSString* const kGDataPhotoAccessPublic _INITIALIZE_AS(@"public");
  34. _EXTERN NSString* const kGDataPhotoAccessAll _INITIALIZE_AS(@"all");
  35. // values for GDataPhotoVideoStatus
  36. _EXTERN NSString* const kGDataPhotoStatusPending _INITIALIZE_AS(@"pending");
  37. _EXTERN NSString* const kGDataPhotoStatusReady _INITIALIZE_AS(@"ready");
  38. _EXTERN NSString* const kGDataPhotoStatusFinal _INITIALIZE_AS(@"final");
  39. _EXTERN NSString* const kGDataPhotoStatusFailed _INITIALIZE_AS(@"failed");
  40. // http://code.google.com/apis/picasaweb/reference.html#gphoto_reference
  41. // album id, like <gphoto:albumid>5024425138</gphoto:albumid>
  42. @interface GDataPhotoAlbumID : GDataValueElementConstruct <GDataExtension>
  43. @end
  44. // comment count, like <gphoto:commentCount>11</gphoto:commentCount>
  45. @interface GDataPhotoCommentCount : GDataValueElementConstruct <GDataExtension>
  46. @end
  47. // comment count, like <gphoto:commentingEnabled>true</gphoto:commentingEnabled>
  48. @interface GDataPhotoCommentingEnabled : GDataValueElementConstruct <GDataExtension>
  49. @end
  50. // photo ID, like <gphoto:id>512131187</gphoto:id>
  51. @interface GDataPhotoGPhotoID : GDataValueElementConstruct <GDataExtension>
  52. @end
  53. // max photos per album, like <gphoto:maxPhotosPerAlbum>1000</gphoto:maxPhotosPerAlbum>
  54. @interface GDataPhotoMaxPhotosPerAlbum : GDataValueElementConstruct <GDataExtension>
  55. @end
  56. // nickname, like <gphoto:nickname>Jane Smith</gphoto:nickname>
  57. @interface GDataPhotoNickname : GDataValueElementConstruct <GDataExtension>
  58. @end
  59. // current quota, like <gphoto:quotacurrent>312459331</gphoto:quotacurrent>
  60. @interface GDataPhotoQuotaUsed : GDataValueElementConstruct <GDataExtension>
  61. @end
  62. // max quota, like <gphoto:quotalimit>1385222385</gphoto:quotalimit>
  63. @interface GDataPhotoQuotaLimit : GDataValueElementConstruct <GDataExtension>
  64. @end
  65. // thumbnail URL, like <gphoto:thumbnail>http://picasaweb.google.com/image/.../Hello.jpg</gphoto:thumbnail>
  66. @interface GDataPhotoThumbnail : GDataValueElementConstruct <GDataExtension>
  67. @end
  68. // user, like <gphoto:user>Jane</gphoto:user>
  69. @interface GDataPhotoUser : GDataValueElementConstruct <GDataExtension>
  70. @end
  71. // access, like <gphoto:access>public</gphoto:access>
  72. @interface GDataPhotoAccess : GDataValueElementConstruct <GDataExtension>
  73. @end
  74. // current album bytes, like <gphoto:bytesUsed>11876307</gphoto:bytesUsed>
  75. @interface GDataPhotoBytesUsed : GDataValueElementConstruct <GDataExtension>
  76. @end
  77. // location, like <gphoto:location>Tokyo, Japan</gphoto:location>
  78. @interface GDataPhotoLocation : GDataValueElementConstruct <GDataExtension>
  79. @end
  80. // number of photos in an album, <gphoto:numphotos>237</gphoto:numphotos>
  81. @interface GDataPhotoNumberUsed : GDataValueElementConstruct <GDataExtension>
  82. @end
  83. // remaining photos which may be added to album,
  84. // <gphoto:numphotosremaining>763</gphoto:numphotosremaining>
  85. @interface GDataPhotoNumberLeft : GDataValueElementConstruct <GDataExtension>
  86. @end
  87. // checksum for optimistic concurrency, <gphoto:checksum>987123</gphoto:checksum>
  88. @interface GDataPhotoChecksum : GDataValueElementConstruct <GDataExtension>
  89. @end
  90. // photo height in pixels, like <gphoto:height>1200</gphoto:height>
  91. @interface GDataPhotoHeight : GDataValueElementConstruct <GDataExtension>
  92. @end
  93. // unapplied rotation in int degrees, <gphoto:rotation>90</gphoto:rotation>
  94. @interface GDataPhotoRotation : GDataValueElementConstruct <GDataExtension>
  95. @end
  96. // photo size in bytes <gphoto:size>149351</gphoto:size>
  97. @interface GDataPhotoSize : GDataValueElementConstruct <GDataExtension>
  98. @end
  99. // photo timestamp, in milliseconds since 1-January-1970,
  100. // like <gphoto:timestamp>1168640584000</gphoto:timestamp>
  101. @interface GDataPhotoTimestamp : GDataValueElementConstruct <GDataExtension>
  102. + (GDataPhotoTimestamp *)timestampWithDate:(NSDate *)date;
  103. - (NSDate *)dateValue;
  104. - (void)setDateValue:(NSDate *)date;
  105. @end
  106. // photo width in pixels, <gphoto:width>1600</gphoto:width>
  107. @interface GDataPhotoWidth : GDataValueElementConstruct <GDataExtension>
  108. @end
  109. // video upload status, like <gphoto:videostatus>pending</gphoto:videostatus>
  110. //
  111. // see constants listed above
  112. @interface GDataPhotoVideoStatus : GDataValueElementConstruct <GDataExtension>
  113. @end
  114. // photo ID for the current comment, <gphoto:photoid>301521187</gphoto:photoid>
  115. @interface GDataPhotoPhotoID : GDataValueElementConstruct <GDataExtension>
  116. @end
  117. // number of appearances of the current tag, <gphoto:weight>3</gphoto:weight>
  118. @interface GDataPhotoWeight : GDataValueElementConstruct <GDataExtension>
  119. @end
  120. //
  121. // elements introduced in V2
  122. //
  123. // description of containing album, like
  124. // <gphoto:albumdesc>My picture collection</gphoto:albumdesc>
  125. @interface GDataPhotoAlbumDesc : GDataValueElementConstruct <GDataExtension>
  126. @end
  127. // title of containing, like
  128. // <gphoto:albumtitle>My album</gphoto:albumtitle>
  129. @interface GDataPhotoAlbumTitle : GDataValueElementConstruct <GDataExtension>
  130. @end
  131. // snippet matching search text, like
  132. // <gphoto:snippet>...happy birthday...</gphoto:snippet>
  133. @interface GDataPhotoSnippet : GDataValueElementConstruct <GDataExtension>
  134. @end
  135. // type of snippet from search text, like
  136. // <gphoto:snippettype>PHOTO_DESCRIPTION<gphoto:snippettype>
  137. @interface GDataPhotoSnippetType : GDataValueElementConstruct <GDataExtension>
  138. @end
  139. // truncation flag for serach results, like
  140. // <gphoto:truncated>1<gphoto:truncated>
  141. @interface GDataPhotoTruncated : GDataValueElementConstruct <GDataExtension>
  142. @end
  143. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE