PageRenderTime 36ms CodeModel.GetById 11ms app.highlight 19ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Spreadsheets/GDataSpreadsheetConstants.h

http://macfuse.googlecode.com/
C++ Header | 77 lines | 39 code | 20 blank | 18 comment | 1 complexity | 2b4f7b6200c0272f28e60aefecdde348 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//  GDataSpreadsheetConstants.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE
21
22#import <Foundation/Foundation.h>
23
24#import "GDataDefines.h"
25
26
27#undef _EXTERN
28#undef _INITIALIZE_AS
29#ifdef GDATASPREADSHEETCONSTANTS_DEFINE_GLOBALS
30#define _EXTERN
31#define _INITIALIZE_AS(x) =x
32#else
33#define _EXTERN GDATA_EXTERN
34#define _INITIALIZE_AS(x)
35#endif
36
37
38_EXTERN NSString* const kGDataSpreadsheetServiceV2 _INITIALIZE_AS(@"2.0");
39_EXTERN NSString* const kGDataSpreadsheetServiceV3 _INITIALIZE_AS(@"3.0");
40_EXTERN NSString* const kGDataSpreadsheetDefaultServiceVersion _INITIALIZE_AS(@"3.0");
41
42_EXTERN NSString* const kGDataNamespaceGSpread             _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006");
43_EXTERN NSString* const kGDataNamespaceGSpreadPrefix       _INITIALIZE_AS(@"gs");
44
45_EXTERN NSString* const kGDataNamespaceGSpreadCustom       _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006/extended");
46_EXTERN NSString* const kGDataNamespaceGSpreadCustomPrefix _INITIALIZE_AS(@"gsx");
47
48_EXTERN NSString* const kGDataNamespaceGViz                _INITIALIZE_AS(@"http://schemas.google.com/visualization/2008");
49_EXTERN NSString* const kGDataNamespaceGVizPrefix          _INITIALIZE_AS(@"gviz");
50
51_EXTERN NSString* const kGDataLinkWorksheetsFeed           _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#worksheetsfeed");
52_EXTERN NSString* const kGDataLinkTablesFeed               _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#tablesfeed");
53_EXTERN NSString* const kGDataLinkListFeed                 _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#listfeed");
54_EXTERN NSString* const kGDataLinkCellsFeed                _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#cellsfeed");
55_EXTERN NSString* const kGDataLinkSource                   _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#source"); // cell source
56_EXTERN NSString* const kGDataLinkRecordsFeed              _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#recordsfeed");
57_EXTERN NSString* const kGDataLinkGviz                     _INITIALIZE_AS(@"http://schemas.google.com/visualization/2008#visualizationApi");
58
59_EXTERN NSString* const kGDataCategorySchemeSpreadsheet    _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006");
60
61_EXTERN NSString* const kGDataCategorySpreadsheet          _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#spreadsheet");
62_EXTERN NSString* const kGDataCategorySpreadsheetCell      _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#cell");
63_EXTERN NSString* const kGDataCategorySpreadsheetList      _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#list");
64_EXTERN NSString* const kGDataCategorySpreadsheetRecord    _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#record");
65_EXTERN NSString* const kGDataCategorySpreadsheetTable     _INITIALIZE_AS(@"http://schemas.google.com/spreadsheets/2006#table");
66
67// SpreadsheetEntry extensions
68
69@interface GDataSpreadsheetConstants : NSObject
70
71+ (NSString *)coreProtocolVersionForServiceVersion:(NSString *)serviceVersion;
72
73+ (NSDictionary *)spreadsheetNamespaces;
74
75@end
76
77#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE