PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/ACL/GDataACLRole.h

http://macfuse.googlecode.com/
C++ Header | 62 lines | 29 code | 12 blank | 21 comment | 3 complexity | 3c1f2bbac7bd070ff1d6f0dd5eef6b78 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//  GDataRole.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ACLS \
21  || GDATA_INCLUDE_CALENDAR_SERVICE || GDATA_INCLUDE_DOCS_SERVICE
22
23#import "GDataObject.h"
24#import "GDataValueConstruct.h"
25
26#undef _EXTERN
27#undef _INITIALIZE_AS
28#ifdef GDATAACLROLE_DEFINE_GLOBALS
29#define _EXTERN 
30#define _INITIALIZE_AS(x) =x
31#else
32#define _EXTERN GDATA_EXTERN
33#define _INITIALIZE_AS(x)
34#endif
35
36_EXTERN NSString* const kGDataRoleNone      _INITIALIZE_AS(@"none");
37_EXTERN NSString* const kGDataRolePeeker    _INITIALIZE_AS(@"peeker");
38_EXTERN NSString* const kGDataRoleReader    _INITIALIZE_AS(@"reader");
39_EXTERN NSString* const kGDataRoleWriter    _INITIALIZE_AS(@"writer");
40_EXTERN NSString* const kGDataRoleOwner     _INITIALIZE_AS(@"owner");
41_EXTERN NSString* const kGDataRoleCommenter _INITIALIZE_AS(@"commenter");
42
43// an element with a value attribute, as in
44//  <gAcl:role value='owner'></gAcl:role>
45//
46//  http://code.google.com/apis/calendar/reference.html#gacl_reference
47
48
49@interface GDataACLRoleBase : GDataValueConstruct
50+ (id)roleWithValue:(NSString *)value;
51
52- (NSString *)value;
53- (void)setValue:(NSString *)str; 
54@end
55
56@interface GDataACLRole : GDataACLRoleBase <GDataExtension>
57@end
58
59@interface GDataACLAdditionalRole : GDataACLRoleBase <GDataExtension>
60@end
61
62#endif // !GDATA_REQUIRE_SERVICE_INCLUDE || GDATA_INCLUDE_*