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

http://macfuse.googlecode.com/ · C++ Header · 49 lines · 12 code · 12 blank · 25 comment · 1 complexity · 698bf6689cfb2099ba6163501734ae7b MD5 · raw file

  1. /* Copyright (c) 2007 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. // GDataEntrySpreadsheetList.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE
  19. #import "GDataEntryBase.h"
  20. @class GDataSpreadsheetCustomElement;
  21. // SpreadsheetListEntry extensions
  22. @interface GDataEntrySpreadsheetList : GDataEntryBase
  23. + (GDataEntrySpreadsheetList *)listEntry;
  24. // extensions
  25. - (NSArray *)customElements; // array of GDataSpreadsheetCustomElement objects
  26. - (void)setCustomElements:(NSArray *)array;
  27. // there is no addCustomElement since that would not guarantee uniqueness;
  28. // call setCustomElement instead
  29. // extra convenience routines for manipulating custom elements
  30. //
  31. // pass nil obj to setCustomElement:forName: to remove the element
  32. - (GDataSpreadsheetCustomElement *)customElementForName:(NSString *)name;
  33. - (void)setCustomElement:(GDataSpreadsheetCustomElement *)obj;
  34. - (NSDictionary *)customElementDictionary; // builds a name:customelement mapping
  35. // ? should we override setTitle/setContent/setSummary as in Java API?
  36. @end
  37. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE