PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/externals/GData/Source/ACL/GDataACLKeyedRole.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 48 lines | 16 code | 10 blank | 22 comment | 3 complexity | 397c6a35011baa6eb948e9c8d3a0b4bc MD5 | raw file
 1/* Copyright (c) 2010 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//  GDataKeyedRole.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 "GDataACLRole.h"
25
26// a key which specifies a role, such as
27//
28//  <gAcl:withKey key="A123B">
29//    <gAcl:role value='owner'></gAcl:role>
30//  </gAcl:withKey>
31
32@interface GDataACLKeyedRole : GDataObject <GDataExtension>
33+ (GDataACLKeyedRole *)keyedRoleWithKey:(NSString *)key
34                                  value:(NSString *)value;
35
36- (NSString *)key;
37- (void)setKey:(NSString *)str;
38
39- (GDataACLRole *)role;
40- (void)setRole:(GDataACLRole *)obj;
41
42- (NSArray *)additionalRoles;
43- (void)setAdditionalRoles:(NSArray *)array;
44- (void)addAdditionalRole:(GDataACLAdditionalRole *)obj;
45
46@end
47
48#endif // !GDATA_REQUIRE_SERVICE_INCLUDE || GDATA_INCLUDE_*