/core/externals/update-engine/externals/gdata-objectivec-client/Source/Media/GDataMediaGroup.h

http://macfuse.googlecode.com/ · C++ Header · 119 lines · 64 code · 27 blank · 28 comment · 2 complexity · c6cb23967b9b6b93eb31df4415046130 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. // GDataMediaGroup.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE \
  19. || GDATA_INCLUDE_YOUTUBE_SERVICE
  20. #import "GDataObject.h"
  21. #import "GDataTextConstruct.h"
  22. #undef _EXTERN
  23. #undef _INITIALIZE_AS
  24. #ifdef GDATAMEDIAGROUP_DEFINE_GLOBALS
  25. #define _EXTERN
  26. #define _INITIALIZE_AS(x) =x
  27. #else
  28. #define _EXTERN GDATA_EXTERN
  29. #define _INITIALIZE_AS(x)
  30. #endif
  31. _EXTERN NSString* const kGDataNamespaceMedia _INITIALIZE_AS(@"http://search.yahoo.com/mrss/");
  32. _EXTERN NSString* const kGDataNamespaceMediaPrefix _INITIALIZE_AS(@"media");
  33. @class GDataMediaContent;
  34. @class GDataMediaThumbnail;
  35. @class GDataMediaCredit;
  36. @class GDataMediaKeywords;
  37. @class GDataMediaRating;
  38. @class GDataMediaRestriction;
  39. @class GDataMediaCategory;
  40. @class GDataMediaPlayer;
  41. // GDataMediaGroup extension
  42. @interface GDataMediaDescription : GDataTextConstruct <GDataExtension>
  43. + (NSString *)extensionElementURI;
  44. + (NSString *)extensionElementPrefix;
  45. + (NSString *)extensionElementLocalName;
  46. @end
  47. // GDataMediaTitle extension
  48. @interface GDataMediaTitle : GDataTextConstruct <GDataExtension>
  49. + (NSString *)extensionElementURI;
  50. + (NSString *)extensionElementPrefix;
  51. + (NSString *)extensionElementLocalName;
  52. @end
  53. // for media:group, like
  54. // <media:group> <media:contents ... /> </media:group>
  55. // TODO: Currently, just the set needed for Google Photos is implemented
  56. // Still needed:
  57. // MediaCopyright
  58. // MediaHash
  59. // MediaText
  60. //
  61. @interface GDataMediaGroup : GDataObject <GDataExtension>
  62. + (id)mediaGroup;
  63. // extension setters/getters
  64. - (NSArray *)mediaCategories;
  65. - (void)setMediaCategories:(NSArray *)array;
  66. - (void)addMediaCategory:(GDataMediaCategory *)attribute;
  67. - (NSArray *)mediaContents;
  68. - (void)setMediaContents:(NSArray *)array;
  69. - (void)addMediaContent:(GDataMediaContent *)attribute;
  70. - (NSArray *)mediaCredits;
  71. - (void)setMediaCredits:(NSArray *)array;
  72. - (void)addMediaCredit:(GDataMediaCredit *)attribute;
  73. - (NSArray *)mediaPlayers;
  74. - (void)setMediaPlayers:(NSArray *)array;
  75. - (void)addMediaPlayer:(GDataMediaPlayer *)attribute;
  76. - (NSArray *)mediaRatings;
  77. - (void)setMediaRatings:(NSArray *)array;
  78. - (void)addMediaRating:(GDataMediaRating *)attribute;
  79. - (NSArray *)mediaRestrictions;
  80. - (void)setMediaRestrictions:(NSArray *)array;
  81. - (void)addMediaRestriction:(GDataMediaRestriction *)attribute;
  82. - (NSArray *)mediaThumbnails;
  83. - (void)setMediaThumbnails:(NSArray *)array;
  84. - (void)addMediaThumbnail:(GDataMediaThumbnail *)attribute;
  85. - (GDataMediaKeywords *)mediaKeywords;
  86. - (void)setMediaKeywords:(GDataMediaKeywords *)obj;
  87. - (GDataMediaDescription *)mediaDescription;
  88. - (void)setMediaDescription:(GDataMediaDescription *)obj;
  89. - (GDataMediaTitle *)mediaTitle;
  90. - (void)setMediaTitle:(GDataMediaTitle *)obj;
  91. @end
  92. #endif // #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_*_SERVICE