/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Photos/GDataQueryGooglePhotos.h

http://macfuse.googlecode.com/ · C++ Header · 69 lines · 31 code · 16 blank · 22 comment · 1 complexity · 96417b7a9e83a48baad4712d776cce29 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. // GDataQueryGooglePhotos.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE
  19. #import "GDataDefines.h"
  20. #import "GDataQuery.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATAQUERYGOOGLEPHOTOS_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. _EXTERN const NSInteger kGDataGooglePhotosImageSizeDownloadable _INITIALIZE_AS(-1);
  31. @interface GDataQueryGooglePhotos : GDataQuery
  32. + (GDataQueryGooglePhotos *)photoQueryWithFeedURL:(NSURL *)feedURL;
  33. + (GDataQueryGooglePhotos *)photoQueryForUserID:(NSString *)userID
  34. albumID:(NSString *)albumIDorNil
  35. albumName:(NSString *)albumNameOrNil
  36. photoID:(NSString *)photoIDorNil;
  37. - (void)setKind:(NSString *)str;
  38. - (NSString *)kind;
  39. - (void)setAccess:(NSString *)str;
  40. - (NSString *)access;
  41. - (void)setThumbsize:(NSInteger)val;
  42. - (NSInteger)thumbsize;
  43. // imageSize is the imgmax parameter; see documentation for legal values,
  44. // and explanation of which sizes may be cropped or embedded into web pages
  45. //
  46. // Pass kGDataGooglePhotosImageSizeDownloadable to specify that links should be
  47. // for the native download size for each photo ("imgmax=d")
  48. - (void)setImageSize:(NSInteger)val;
  49. - (NSInteger)imageSize;
  50. - (void)setTag:(NSString *)tag;
  51. - (NSString *)tag;
  52. @end
  53. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE