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

/Source/externals/GData/Source/ACL/GDataACLScope.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 60 lines | 26 code | 13 blank | 21 comment | 3 complexity | 816006ba73452d706fb89d5a3e2e6b4e 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//  GDataScope.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
25#undef _EXTERN
26#undef _INITIALIZE_AS
27#ifdef GDATAACLSCOPE_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 kGDataScopeTypeUser    _INITIALIZE_AS(@"user");
36_EXTERN NSString* const kGDataScopeTypeDomain  _INITIALIZE_AS(@"domain");
37_EXTERN NSString* const kGDataScopeTypeDefault _INITIALIZE_AS(@"default");
38_EXTERN NSString* const kGDataScopeTypeGroup   _INITIALIZE_AS(@"group");
39
40
41// an element with type and value attributes, as in
42//  <gAcl:scope type='user' value='user@gmail.com'></gAcl:scope>
43//
44//  http://code.google.com/apis/calendar/reference.html#gacl_reference
45
46@interface GDataACLScope : GDataObject <GDataExtension> 
47
48+ (GDataACLScope *)scopeWithType:(NSString *)type value:(NSString *)value;
49
50- (NSString *)value;
51- (void)setValue:(NSString *)str;
52
53- (NSString *)type;
54- (void)setType:(NSString *)str;
55
56- (NSString *)name;
57- (void)setName:(NSString *)str;
58@end
59
60#endif // !GDATA_REQUIRE_SERVICE_INCLUDE || GDATA_INCLUDE_*