/Source/externals/GData/Source/Media/GDataMediaThumbnail.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 51 lines · 17 code · 11 blank · 23 comment · 2 complexity · b504ff8a8d240d8d8c5e4824ebb9ada7 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. // GDataMediaThumbnail.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE \
  19. || GDATA_INCLUDE_YOUTUBE_SERVICE
  20. #import "GDataObject.h"
  21. #import "GDataNormalPlayTime.h"
  22. // media:thumbnail element
  23. //
  24. // <media:thumbnail url="http://www.foo.com/keyframe.jpg"
  25. // width="75" height="50" time="12:05:01.123" />
  26. //
  27. // http://search.yahoo.com/mrss
  28. @interface GDataMediaThumbnail : GDataObject <GDataExtension> {
  29. }
  30. + (GDataMediaThumbnail *)mediaContentWithURL:(NSString *)urlString;
  31. - (NSString *)URLString;
  32. - (void)setURLString:(NSString *)str;
  33. - (NSNumber *)height;
  34. - (void)setHeight:(NSNumber *)num;
  35. - (NSNumber *)width;
  36. - (void)setWidth:(NSNumber *)num;
  37. - (GDataNormalPlayTime *)time;
  38. - (void)setTime:(GDataNormalPlayTime *)playTime;
  39. @end
  40. #endif // #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_*_SERVICE