/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/YouTube/GDataQueryYouTube.h

http://macfuse.googlecode.com/ · C++ Header · 104 lines · 54 code · 26 blank · 24 comment · 1 complexity · bd13251fc25e71254965f3b047ef4c06 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. // GDataQueryYouTube.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE
  19. #import "GDataQuery.h"
  20. #undef _EXTERN
  21. #undef _INITIALIZE_AS
  22. #ifdef GDATAQUERYYOUTUBE_DEFINE_GLOBALS
  23. #define _EXTERN
  24. #define _INITIALIZE_AS(x) =x
  25. #else
  26. #define _EXTERN GDATA_EXTERN
  27. #define _INITIALIZE_AS(x)
  28. #endif
  29. _EXTERN NSString* const kGDataYouTubeOrderByUpdated _INITIALIZE_AS(@"updated");
  30. _EXTERN NSString* const kGDataYouTubeOrderByViewCount _INITIALIZE_AS(@"viewCount");
  31. _EXTERN NSString* const kGDataYouTubeOrderByRating _INITIALIZE_AS(@"rating");
  32. _EXTERN NSString* const kGDataYouTubeOrderByRelevance _INITIALIZE_AS(@"relevance");
  33. _EXTERN NSString* const kGDataYouTubePeriodToday _INITIALIZE_AS(@"today");
  34. _EXTERN NSString* const kGDataYouTubePeriodThisWeek _INITIALIZE_AS(@"this_week");
  35. _EXTERN NSString* const kGDataYouTubePeriodThisMonth _INITIALIZE_AS(@"this_month");
  36. _EXTERN NSString* const kGDataYouTubePeriodAllTime _INITIALIZE_AS(@"all_time");
  37. _EXTERN NSString* const kGDataYouTubeSafeSearchNone _INITIALIZE_AS(@"none");
  38. _EXTERN NSString* const kGDataYouTubeSafeSearchStrict _INITIALIZE_AS(@"strict");
  39. _EXTERN NSString* const kGDataYouTubeSafeSearchModerate _INITIALIZE_AS(@"moderate");
  40. _EXTERN NSString* const kGDataYouTubeCaptionTrackFormatSubviewer _INITIALIZE_AS(@"sbv");
  41. _EXTERN NSString* const kGDataYouTubeCaptionTrackFormatSubrip _INITIALIZE_AS(@"srt");
  42. // http://code.google.com/apis/youtube/reference.html#Parameters
  43. @interface GDataQueryYouTube : GDataQuery
  44. + (GDataQueryYouTube *)youTubeQueryWithFeedURL:(NSURL *)feedURL;
  45. - (void)setVideoQuery:(NSString *)str;
  46. - (NSString *)videoQuery;
  47. - (void)setFormat:(NSString *)str;
  48. - (NSString *)format;
  49. - (void)setCaptionTrackFormat:(NSString *)str;
  50. - (NSString *)captionTrackFormat;
  51. - (void)setTimePeriod:(NSString *)str;
  52. - (NSString *)timePeriod;
  53. // restriction is a country code or IP address
  54. - (void)setRestriction:(NSString *)str;
  55. - (NSString *)restriction;
  56. // language restriction is a ISO 639-1 2-letter language code
  57. - (void)setLanguageRestriction:(NSString *)str;
  58. - (NSString *)languageRestriction;
  59. // location as latitude,longitude
  60. - (void)setLocation:(NSString *)str;
  61. - (NSString *)location;
  62. // radius like "100km" with units "ft", "mi", "m", or "km"
  63. - (void)setLocationRadius:(NSString *)str;
  64. - (NSString *)locationRadius;
  65. - (void)setHasCaptions:(BOOL)flag;
  66. - (BOOL)hasCaptions;
  67. - (void)setShouldRequire3D:(BOOL)flag;
  68. - (BOOL)shouldRequire3D;
  69. // put video entries into link elements for activity feed entries
  70. - (void)setShouldInline:(BOOL)flag;
  71. - (BOOL)shouldInline;
  72. - (void)setUploader:(NSString *)str;
  73. - (NSString *)uploader;
  74. // safeSearch replaces allowRacy
  75. - (void)setSafeSearch:(NSString *)str;
  76. - (NSString *)safeSearch;
  77. @end
  78. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE