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

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

http://macfuse.googlecode.com/
C++ Header | 79 lines | 41 code | 20 blank | 18 comment | 3 complexity | d6bf43200e89369bc708ca3922d82341 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//
17//  GDataEntryACL.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ACLS \
21  || GDATA_INCLUDE_CALENDAR_SERVICE || GDATA_INCLUDE_DOCS_SERVICE
22
23#import "GDataEntryBase.h"
24
25#undef _EXTERN
26#undef _INITIALIZE_AS
27#ifdef GDATAENTRYACL_DEFINE_GLOBALS
28#define _EXTERN
29#define _INITIALIZE_AS(x) =x
30#else
31#define _EXTERN GDATA_EXTERN
32#define _INITIALIZE_AS(x)
33#endif
34
35_EXTERN NSString* const kGDataCategoryACL _INITIALIZE_AS(@"http://schemas.google.com/acl/2007#accessRule");
36
37_EXTERN NSString* const kGDataNamespaceACL _INITIALIZE_AS(@"http://schemas.google.com/acl/2007");
38_EXTERN NSString* const kGDataNamespaceACLPrefix _INITIALIZE_AS(@"gAcl");
39
40_EXTERN NSString* const kGDataLinkRelACL _INITIALIZE_AS(@"http://schemas.google.com/acl/2007#accessControlList");
41_EXTERN NSString* const kGDataLinkRelControlledObject _INITIALIZE_AS(@"http://schemas.google.com/acl/2007#controlledObject");
42
43@class GDataACLRole;
44@class GDataACLScope;
45@class GDataACLKeyedRole;
46@class GDataACLAdditionalRole;
47
48#import "GDataCategory.h"
49
50@interface GDataEntryACL : GDataEntryBase
51
52+ (NSDictionary *)ACLNamespaces;
53
54+ (id)ACLEntryWithScope:(GDataACLScope *)scope
55                   role:(GDataACLRole *)role;
56
57- (void)setRole:(GDataACLRole *)obj;
58- (GDataACLRole *)role;
59
60- (void)setKeyedRole:(GDataACLKeyedRole *)obj;
61- (GDataACLKeyedRole *)keyedRole;
62
63- (NSArray *)additionalRoles;
64- (void)setAdditionalRoles:(NSArray *)array;
65- (void)addAdditionalRole:(GDataACLAdditionalRole *)obj;
66
67- (void)setScope:(GDataACLScope *)obj;
68- (GDataACLScope *)scope;
69
70// convenience accessors
71
72- (GDataLink *)controlledObjectLink;
73@end
74
75@interface GDataEntryBase (GDataACLLinks)
76- (GDataLink *)ACLLink;
77@end
78
79#endif // !GDATA_REQUIRE_SERVICE_INCLUDE || GDATA_INCLUDE_*