PageRenderTime 24ms CodeModel.GetById 17ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, GPL-2.0
  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. // GDataYouTubeAccessControl.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE
  19. #import "GDataObject.h"
  20. #undef _EXTERN
  21. #undef _INITIALIZE_AS
  22. #ifdef GDATAYOUTUBEACCESSCONTROL_DEFINE_GLOBALS
  23. #define _EXTERN
  24. #define _INITIALIZE_AS(x) =x
  25. #else
  26. #define _EXTERN GDATA_EXTERN
  27. #define _INITIALIZE_AS(x)
  28. #endif
  29. // actions
  30. _EXTERN NSString* const kGDataYouTubeAccessControlRate _INITIALIZE_AS(@"rate");
  31. _EXTERN NSString* const kGDataYouTubeAccessControlComment _INITIALIZE_AS(@"comment");
  32. _EXTERN NSString* const kGDataYouTubeAccessControlCommentVote _INITIALIZE_AS(@"commentVote");
  33. _EXTERN NSString* const kGDataYouTubeAccessControlVideoRespond _INITIALIZE_AS(@"videoRespond");
  34. _EXTERN NSString* const kGDataYouTubeAccessControlEmbed _INITIALIZE_AS(@"embed");
  35. _EXTERN NSString* const kGDataYouTubeAccessControlList _INITIALIZE_AS(@"list");
  36. _EXTERN NSString* const kGDataYouTubeAccessControlSyndicate _INITIALIZE_AS(@"syndicate");
  37. // permissions
  38. _EXTERN NSString* const kGDataYouTubeAccessControlPermissionAllowed _INITIALIZE_AS(@"allowed");
  39. _EXTERN NSString* const kGDataYouTubeAccessControlPermissionDenied _INITIALIZE_AS(@"denied");
  40. _EXTERN NSString* const kGDataYouTubeAccessControlPermissionModerated _INITIALIZE_AS(@"moderated");
  41. // access control element, such as
  42. // <yt:accessControl action='comment' permission='allowed' type='group'>
  43. // friends
  44. // </yt:accessControl>
  45. @interface GDataYouTubeAccessControl : GDataObject <GDataExtension>
  46. + (GDataYouTubeAccessControl *)accessControlWithAction:(NSString *)action
  47. permission:(NSString *)permission;
  48. - (NSString *)action;
  49. - (void)setAction:(NSString *)str;
  50. - (NSString *)permission;
  51. - (void)setPermission:(NSString *)str;
  52. - (NSString *)type;
  53. - (void)setType:(NSString *)str;
  54. - (NSString *)value;
  55. - (void)setValue:(NSString *)str;
  56. @end
  57. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE