/Source/externals/GData/Source/Clients/YouTube/GDataEntryYouTubeVideo.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 86 lines · 43 code · 19 blank · 24 comment · 1 complexity · db868e0ba7bdd112677b7376909fffdb MD5 · raw file

  1. /* Copyright (c) 2008 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. // GDataEntryYouTubeVideo.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE
  19. #import "GDataEntryBase.h"
  20. #import "GDataYouTubeMediaElements.h"
  21. #import "GDataYouTubeStatistics.h"
  22. #import "GDataYouTubePublicationState.h"
  23. #import "GDataYouTubeAccessControl.h"
  24. #import "GDataYouTubeRating.h"
  25. #import "GDataGeo.h"
  26. #import "GDataComment.h"
  27. #import "GDataLink.h"
  28. @interface GDataEntryYouTubeVideo : GDataEntryBase
  29. + (GDataEntryYouTubeVideo *)videoEntry;
  30. - (GDataYouTubeStatistics *)statistics;
  31. - (void)setStatistics:(GDataYouTubeStatistics *)obj;
  32. - (GDataComment *)comment;
  33. - (void)setComment:(GDataComment *)obj;
  34. - (BOOL)isEmbeddable;
  35. - (void)setIsEmbeddable:(BOOL)flag;
  36. // rating previously was a GDataRating element <gd:rating> but has
  37. // changed to GDataYouTubeRating <yt:rating>
  38. - (GDataYouTubeRating *)rating;
  39. - (void)setRating:(GDataYouTubeRating *)obj;
  40. - (GDataYouTubeMediaGroup *)mediaGroup;
  41. - (void)setMediaGroup:(GDataYouTubeMediaGroup *)obj;
  42. // setGeoLocation requires an instance of a subclass of GDataGeo, not an
  43. // instance of GDataGeo; see GDataGeo.h
  44. //
  45. // for YouTube, use GDataGeoRSSWhere for the geo location
  46. - (GDataGeo *)geoLocation;
  47. - (void)setGeoLocation:(GDataGeo *)geo;
  48. - (GDataYouTubePublicationState *)publicationState;
  49. - (void)setGDataYouTubePublicationState:(GDataYouTubePublicationState *)obj;
  50. - (NSString *)location; // yt:location
  51. - (void)setLocation:(NSString *)str;
  52. - (GDataDateTime *)recordedDate;
  53. - (void)setRecordedDate:(GDataDateTime *)dateTime;
  54. - (NSArray *)accessControls;
  55. - (void)setAccessControls:(NSArray *)array;
  56. - (void)addAccessControl:(GDataYouTubeAccessControl *)obj;
  57. // convenience accessors
  58. - (GDataLink *)videoResponsesLink;
  59. - (GDataLink *)ratingsLink;
  60. - (GDataLink *)complaintsLink;
  61. - (GDataLink *)captionTracksLink;
  62. @end
  63. @interface GDataLink (GDataYouTubeVideoEntryAdditions)
  64. - (GDataYouTubeToken *)youTubeToken;
  65. - (void)setYouTubeToken:(GDataYouTubeToken *)obj;
  66. @end
  67. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE