/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Books/GDataBookConstants.h

http://macfuse.googlecode.com/ · C++ Header · 83 lines · 45 code · 20 blank · 18 comment · 1 complexity · b601e0e675164759a4e7f7dddc509876 MD5 · raw file

  1. /* Copyright (c) 2009 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. // GDataBookConstants.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_BOOKS_SERVICE
  19. #import <Foundation/Foundation.h>
  20. #import "GDataDefines.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATABOOKCONSTANTS_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 NSString* const kGDataBooksDefaultServiceVersion _INITIALIZE_AS(@"2.0");
  31. _EXTERN NSString* const kGDataNamespaceBooks _INITIALIZE_AS(@"http://schemas.google.com/books/2008");
  32. _EXTERN NSString* const kGDataNamespaceBooksPrefix _INITIALIZE_AS(@"gbs");
  33. _EXTERN NSString* const kGDataCategoryBooksVolume _INITIALIZE_AS(@"http://schemas.google.com/books/2008#volume");
  34. _EXTERN NSString* const kGDataCategoryBooksCollection _INITIALIZE_AS(@"http://schemas.google.com/books/2008#collection");
  35. _EXTERN NSString* const kGDataBooksViewAllPages _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_all_pages");
  36. _EXTERN NSString* const kGDataBooksViewNoPages _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_no_pages");
  37. _EXTERN NSString* const kGDataBooksViewPartial _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_partial");
  38. _EXTERN NSString* const kGDataBooksViewUnknown _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_unknown");
  39. _EXTERN NSString* const kGDataBooksEmbeddable _INITIALIZE_AS(@"http://schemas.google.com/books/2008#embeddable");
  40. _EXTERN NSString* const kGDataBooksNotEmbeddable _INITIALIZE_AS(@"http://schemas.google.com/books/2008#not_embeddable");
  41. _EXTERN NSString* const kGDataBooksEnabled _INITIALIZE_AS(@"http://schemas.google.com/books/2008#enabled");
  42. _EXTERN NSString* const kGDataBooksDisabled _INITIALIZE_AS(@"http://schemas.google.com/books/2008#disabled");
  43. _EXTERN NSString* const kGDataBooksActionChooseBookmark _INITIALIZE_AS(@"ChooseBookmark");
  44. _EXTERN NSString* const kGDataBooksActionSearchInBook _INITIALIZE_AS(@"SearchWithinBook");
  45. // was kGDataBooksActionFindResult
  46. _EXTERN NSString* const kGDataBooksActionNextPage _INITIALIZE_AS(@"NextPage");
  47. _EXTERN NSString* const kGDataBooksActionPrevPage _INITIALIZE_AS(@"PrevPage");
  48. _EXTERN NSString* const kGDataBooksActionScrollToPage _INITIALIZE_AS(@"ScrollToPage");
  49. _EXTERN NSString* const kGDataBooksActionSelectChapter _INITIALIZE_AS(@"SelectChapter");
  50. _EXTERN NSString* const kGDataBooksInfoRel _INITIALIZE_AS(@"http://schemas.google.com/books/2008/info");
  51. _EXTERN NSString* const kGDataBooksPreviewRel _INITIALIZE_AS(@"http://schemas.google.com/books/2008/preview");
  52. _EXTERN NSString* const kGDataBooksThumbnailRel _INITIALIZE_AS(@"http://schemas.google.com/books/2008/thumbnail");
  53. _EXTERN NSString* const kGDataBooksAnnotationRel _INITIALIZE_AS(@"http://schemas.google.com/books/2008/annotation");
  54. _EXTERN NSString* const kGDataBooksBuyLinkRel _INITIALIZE_AS(@"http://schemas.google.com/books/2008/buylink");
  55. _EXTERN NSString* const kGDataBooksEPubDownloadRel _INITIALIZE_AS(@"http://schemas.google.com/books/2008/epubdownload");
  56. _EXTERN NSString* const kGDataBooksEPubToken _INITIALIZE_AS(@"http://schemas.google.com/books/2008/acsepubfulfillmenttoken");
  57. _EXTERN NSString* const kGDataBooksLabelsScheme _INITIALIZE_AS(@"http://schemas.google.com/books/2008/labels");
  58. _EXTERN NSString* const kGDataBooksTypeIDScheme _INITIALIZE_AS(@"http://schemas.google.com/books/2008/collections#type_id");
  59. @interface GDataBookConstants : NSObject
  60. + (NSString *)coreProtocolVersionForServiceVersion:(NSString *)serviceVersion;
  61. + (NSDictionary *)booksNamespaces;
  62. @end
  63. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_BOOKS_SERVICE