/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataBatchOperation.h

http://macfuse.googlecode.com/ · C++ Header · 47 lines · 19 code · 9 blank · 19 comment · 0 complexity · d15d0f68ff3756d502026cc29196a92a MD5 · raw file

  1. /* Copyright (c) 2007-2008 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. // GDataBatchOperation.h
  17. //
  18. #import "GDataObject.h"
  19. #undef _EXTERN
  20. #undef _INITIALIZE_AS
  21. #ifdef GDATABATCH_DEFINE_GLOBALS
  22. #define _EXTERN
  23. #define _INITIALIZE_AS(x) =x
  24. #else
  25. #define _EXTERN GDATA_EXTERN
  26. #define _INITIALIZE_AS(x)
  27. #endif
  28. _EXTERN NSString* const kGDataBatchOperationInsert _INITIALIZE_AS(@"insert");
  29. _EXTERN NSString* const kGDataBatchOperationUpdate _INITIALIZE_AS(@"update");
  30. _EXTERN NSString* const kGDataBatchOperationDelete _INITIALIZE_AS(@"delete");
  31. _EXTERN NSString* const kGDataBatchOperationQuery _INITIALIZE_AS(@"query");
  32. // for batch operations, like
  33. // <batch:operation type="insert"/>
  34. @interface GDataBatchOperation : GDataObject <GDataExtension>
  35. + (GDataBatchOperation *)batchOperationWithType:(NSString *)type;
  36. - (NSString *)type;
  37. - (void)setType:(NSString *)str;
  38. @end