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

http://macfuse.googlecode.com/ · 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. // GDataSpreadsheetData.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE
  19. #import "GDataObject.h"
  20. #undef _EXTERN
  21. #undef _INITIALIZE_AS
  22. #ifdef GDATASPREADSHEETDATA_DEFINE_GLOBALS
  23. #define _EXTERN
  24. #define _INITIALIZE_AS(x) =x
  25. #else
  26. #define _EXTERN GDATA_EXTERN
  27. #define _INITIALIZE_AS(x)
  28. #endif
  29. _EXTERN NSString* const kGDataSpreadsheetModeInsert _INITIALIZE_AS(@"insert");
  30. _EXTERN NSString* const kGDataSpreadsheetModeOverwrite _INITIALIZE_AS(@"overwrite");
  31. // For table data, like
  32. // <gs:data startRow="2" numRows="6" >
  33. // <gs:column index="a" name="Name" />
  34. // <gs:column index="b" name="Birthday" />
  35. // </gs:data>
  36. @class GDataSpreadsheetColumn;
  37. @interface GDataSpreadsheetData : GDataObject <GDataExtension>
  38. + (GDataSpreadsheetData *)spreadsheetDataWithStartIndex:(int)startRow
  39. numberOfRows:(int)numRows
  40. insertionMode:(NSString *)insertionMode;
  41. - (NSNumber *)startIndex; // int
  42. - (void)setStartIndex:(NSNumber *)num;
  43. - (NSNumber *)numberOfRows; // int
  44. - (void)setNumberOfRows:(NSNumber *)num;
  45. - (NSString *)insertionMode;
  46. - (void)setInsertionMode:(NSString *)str;
  47. - (NSArray *)columns;
  48. - (void)setColumns:(NSArray *)array;
  49. - (void)addColumn:(GDataSpreadsheetColumn *)obj;
  50. @end
  51. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE