/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Spreadsheets/GDataSpreadsheetData.h
C++ Header | 66 lines | 29 code | 15 blank | 22 comment | 1 complexity | 53fa691e9fc34adec5df3eea93ba6c1e 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// GDataSpreadsheetData.h 18// 19 20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE 21 22#import "GDataObject.h" 23 24#undef _EXTERN 25#undef _INITIALIZE_AS 26#ifdef GDATASPREADSHEETDATA_DEFINE_GLOBALS 27#define _EXTERN 28#define _INITIALIZE_AS(x) =x 29#else 30#define _EXTERN GDATA_EXTERN 31#define _INITIALIZE_AS(x) 32#endif 33 34_EXTERN NSString* const kGDataSpreadsheetModeInsert _INITIALIZE_AS(@"insert"); 35_EXTERN NSString* const kGDataSpreadsheetModeOverwrite _INITIALIZE_AS(@"overwrite"); 36 37// For table data, like 38// <gs:data startRow="2" numRows="6" > 39// <gs:column index="a" name="Name" /> 40// <gs:column index="b" name="Birthday" /> 41// </gs:data> 42 43@class GDataSpreadsheetColumn; 44 45@interface GDataSpreadsheetData : GDataObject <GDataExtension> 46 47+ (GDataSpreadsheetData *)spreadsheetDataWithStartIndex:(int)startRow 48 numberOfRows:(int)numRows 49 insertionMode:(NSString *)insertionMode; 50 51- (NSNumber *)startIndex; // int 52- (void)setStartIndex:(NSNumber *)num; 53 54- (NSNumber *)numberOfRows; // int 55- (void)setNumberOfRows:(NSNumber *)num; 56 57- (NSString *)insertionMode; 58- (void)setInsertionMode:(NSString *)str; 59 60- (NSArray *)columns; 61- (void)setColumns:(NSArray *)array; 62- (void)addColumn:(GDataSpreadsheetColumn *)obj; 63 64@end 65 66#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE