PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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//
17//  GDataBookConstants.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_BOOKS_SERVICE
21
22#import <Foundation/Foundation.h>
23
24#import "GDataDefines.h"
25
26#undef _EXTERN
27#undef _INITIALIZE_AS
28#ifdef GDATABOOKCONSTANTS_DEFINE_GLOBALS
29#define _EXTERN
30#define _INITIALIZE_AS(x) =x
31#else
32#define _EXTERN GDATA_EXTERN
33#define _INITIALIZE_AS(x)
34#endif
35
36_EXTERN NSString* const kGDataBooksDefaultServiceVersion _INITIALIZE_AS(@"2.0");
37
38_EXTERN NSString* const kGDataNamespaceBooks            _INITIALIZE_AS(@"http://schemas.google.com/books/2008");
39_EXTERN NSString* const kGDataNamespaceBooksPrefix      _INITIALIZE_AS(@"gbs");
40
41_EXTERN NSString* const kGDataCategoryBooksVolume       _INITIALIZE_AS(@"http://schemas.google.com/books/2008#volume");
42_EXTERN NSString* const kGDataCategoryBooksCollection   _INITIALIZE_AS(@"http://schemas.google.com/books/2008#collection");
43
44_EXTERN NSString* const kGDataBooksViewAllPages         _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_all_pages");
45_EXTERN NSString* const kGDataBooksViewNoPages          _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_no_pages");
46_EXTERN NSString* const kGDataBooksViewPartial          _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_partial");
47_EXTERN NSString* const kGDataBooksViewUnknown          _INITIALIZE_AS(@"http://schemas.google.com/books/2008#view_unknown");
48
49_EXTERN NSString* const kGDataBooksEmbeddable           _INITIALIZE_AS(@"http://schemas.google.com/books/2008#embeddable");
50_EXTERN NSString* const kGDataBooksNotEmbeddable        _INITIALIZE_AS(@"http://schemas.google.com/books/2008#not_embeddable");
51
52_EXTERN NSString* const kGDataBooksEnabled              _INITIALIZE_AS(@"http://schemas.google.com/books/2008#enabled");
53_EXTERN NSString* const kGDataBooksDisabled             _INITIALIZE_AS(@"http://schemas.google.com/books/2008#disabled");
54
55_EXTERN NSString* const kGDataBooksActionChooseBookmark _INITIALIZE_AS(@"ChooseBookmark");
56_EXTERN NSString* const kGDataBooksActionSearchInBook   _INITIALIZE_AS(@"SearchWithinBook");
57                        // was kGDataBooksActionFindResult
58_EXTERN NSString* const kGDataBooksActionNextPage       _INITIALIZE_AS(@"NextPage");
59_EXTERN NSString* const kGDataBooksActionPrevPage       _INITIALIZE_AS(@"PrevPage");
60_EXTERN NSString* const kGDataBooksActionScrollToPage   _INITIALIZE_AS(@"ScrollToPage");
61_EXTERN NSString* const kGDataBooksActionSelectChapter  _INITIALIZE_AS(@"SelectChapter");
62
63_EXTERN NSString* const kGDataBooksInfoRel              _INITIALIZE_AS(@"http://schemas.google.com/books/2008/info");
64_EXTERN NSString* const kGDataBooksPreviewRel           _INITIALIZE_AS(@"http://schemas.google.com/books/2008/preview");
65_EXTERN NSString* const kGDataBooksThumbnailRel         _INITIALIZE_AS(@"http://schemas.google.com/books/2008/thumbnail");
66_EXTERN NSString* const kGDataBooksAnnotationRel        _INITIALIZE_AS(@"http://schemas.google.com/books/2008/annotation");
67_EXTERN NSString* const kGDataBooksBuyLinkRel           _INITIALIZE_AS(@"http://schemas.google.com/books/2008/buylink");
68_EXTERN NSString* const kGDataBooksEPubDownloadRel      _INITIALIZE_AS(@"http://schemas.google.com/books/2008/epubdownload");
69_EXTERN NSString* const kGDataBooksEPubToken            _INITIALIZE_AS(@"http://schemas.google.com/books/2008/acsepubfulfillmenttoken");
70
71_EXTERN NSString* const kGDataBooksLabelsScheme         _INITIALIZE_AS(@"http://schemas.google.com/books/2008/labels");
72_EXTERN NSString* const kGDataBooksTypeIDScheme         _INITIALIZE_AS(@"http://schemas.google.com/books/2008/collections#type_id");
73
74
75@interface GDataBookConstants : NSObject
76
77+ (NSString *)coreProtocolVersionForServiceVersion:(NSString *)serviceVersion;
78
79+ (NSDictionary *)booksNamespaces;
80
81@end
82
83#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_BOOKS_SERVICE