PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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