PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/YouTube/GDataYouTubeAccessControl.h

http://macfuse.googlecode.com/
C++ Header | 73 lines | 34 code | 16 blank | 23 comment | 1 complexity | dfce8de197dfed9e68e9a435ac3ae8ff 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//  GDataYouTubeAccessControl.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE
21
22#import "GDataObject.h"
23
24#undef _EXTERN
25#undef _INITIALIZE_AS
26#ifdef GDATAYOUTUBEACCESSCONTROL_DEFINE_GLOBALS
27#define _EXTERN
28#define _INITIALIZE_AS(x) =x
29#else
30#define _EXTERN GDATA_EXTERN
31#define _INITIALIZE_AS(x)
32#endif
33
34// actions
35_EXTERN NSString* const kGDataYouTubeAccessControlRate         _INITIALIZE_AS(@"rate");
36_EXTERN NSString* const kGDataYouTubeAccessControlComment      _INITIALIZE_AS(@"comment");
37_EXTERN NSString* const kGDataYouTubeAccessControlCommentVote  _INITIALIZE_AS(@"commentVote");
38_EXTERN NSString* const kGDataYouTubeAccessControlVideoRespond _INITIALIZE_AS(@"videoRespond");
39_EXTERN NSString* const kGDataYouTubeAccessControlEmbed        _INITIALIZE_AS(@"embed");
40_EXTERN NSString* const kGDataYouTubeAccessControlList         _INITIALIZE_AS(@"list");
41_EXTERN NSString* const kGDataYouTubeAccessControlSyndicate    _INITIALIZE_AS(@"syndicate");
42
43// permissions
44_EXTERN NSString* const kGDataYouTubeAccessControlPermissionAllowed   _INITIALIZE_AS(@"allowed");
45_EXTERN NSString* const kGDataYouTubeAccessControlPermissionDenied    _INITIALIZE_AS(@"denied");
46_EXTERN NSString* const kGDataYouTubeAccessControlPermissionModerated _INITIALIZE_AS(@"moderated");
47
48
49// access control element, such as
50//  <yt:accessControl action='comment' permission='allowed' type='group'>
51//    friends
52//  </yt:accessControl>
53
54@interface GDataYouTubeAccessControl : GDataObject <GDataExtension>
55
56+ (GDataYouTubeAccessControl *)accessControlWithAction:(NSString *)action
57                                            permission:(NSString *)permission;
58
59- (NSString *)action;
60- (void)setAction:(NSString *)str;
61
62- (NSString *)permission;
63- (void)setPermission:(NSString *)str;
64
65- (NSString *)type;
66- (void)setType:(NSString *)str;
67
68- (NSString *)value;
69- (void)setValue:(NSString *)str;
70
71@end
72
73#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE