PageRenderTime 27ms CodeModel.GetById 7ms app.highlight 14ms RepoModel.GetById 2ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Media/GDataMediaGroup.h

http://macfuse.googlecode.com/
C++ Header | 119 lines | 64 code | 27 blank | 28 comment | 2 complexity | c6cb23967b9b6b93eb31df4415046130 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//  GDataMediaGroup.h
 18//
 19
 20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_PHOTOS_SERVICE \
 21  || GDATA_INCLUDE_YOUTUBE_SERVICE
 22
 23#import "GDataObject.h"
 24#import "GDataTextConstruct.h"
 25
 26#undef _EXTERN
 27#undef _INITIALIZE_AS
 28#ifdef GDATAMEDIAGROUP_DEFINE_GLOBALS
 29#define _EXTERN 
 30#define _INITIALIZE_AS(x) =x
 31#else
 32#define _EXTERN GDATA_EXTERN
 33#define _INITIALIZE_AS(x)
 34#endif
 35
 36_EXTERN NSString* const kGDataNamespaceMedia _INITIALIZE_AS(@"http://search.yahoo.com/mrss/");
 37_EXTERN NSString* const kGDataNamespaceMediaPrefix _INITIALIZE_AS(@"media");
 38
 39
 40@class GDataMediaContent;
 41@class GDataMediaThumbnail;
 42@class GDataMediaCredit;
 43@class GDataMediaKeywords;
 44@class GDataMediaRating;
 45@class GDataMediaRestriction;
 46@class GDataMediaCategory;
 47@class GDataMediaPlayer;
 48
 49// GDataMediaGroup extension
 50@interface GDataMediaDescription : GDataTextConstruct <GDataExtension>
 51+ (NSString *)extensionElementURI;
 52+ (NSString *)extensionElementPrefix;
 53+ (NSString *)extensionElementLocalName;
 54@end
 55
 56// GDataMediaTitle extension
 57@interface GDataMediaTitle : GDataTextConstruct <GDataExtension>
 58+ (NSString *)extensionElementURI;
 59+ (NSString *)extensionElementPrefix;
 60+ (NSString *)extensionElementLocalName;
 61@end
 62
 63
 64// for media:group, like 
 65// <media:group> <media:contents  ... /> </media:group>
 66
 67// TODO:  Currently, just the set needed for Google Photos is implemented
 68// Still needed:
 69//   MediaCopyright
 70//   MediaHash
 71//   MediaText
 72//   
 73
 74@interface GDataMediaGroup : GDataObject <GDataExtension>
 75
 76+ (id)mediaGroup;
 77
 78// extension setters/getters
 79
 80- (NSArray *)mediaCategories;
 81- (void)setMediaCategories:(NSArray *)array;
 82- (void)addMediaCategory:(GDataMediaCategory *)attribute;  
 83
 84- (NSArray *)mediaContents;
 85- (void)setMediaContents:(NSArray *)array;
 86- (void)addMediaContent:(GDataMediaContent *)attribute;  
 87
 88- (NSArray *)mediaCredits;
 89- (void)setMediaCredits:(NSArray *)array;
 90- (void)addMediaCredit:(GDataMediaCredit *)attribute;
 91
 92- (NSArray *)mediaPlayers;
 93- (void)setMediaPlayers:(NSArray *)array;
 94- (void)addMediaPlayer:(GDataMediaPlayer *)attribute;
 95
 96- (NSArray *)mediaRatings;
 97- (void)setMediaRatings:(NSArray *)array;
 98- (void)addMediaRating:(GDataMediaRating *)attribute;
 99
100- (NSArray *)mediaRestrictions;
101- (void)setMediaRestrictions:(NSArray *)array;
102- (void)addMediaRestriction:(GDataMediaRestriction *)attribute;
103
104- (NSArray *)mediaThumbnails;
105- (void)setMediaThumbnails:(NSArray *)array;
106- (void)addMediaThumbnail:(GDataMediaThumbnail *)attribute;
107
108- (GDataMediaKeywords *)mediaKeywords;
109- (void)setMediaKeywords:(GDataMediaKeywords *)obj;
110
111- (GDataMediaDescription *)mediaDescription;
112- (void)setMediaDescription:(GDataMediaDescription *)obj;
113  
114- (GDataMediaTitle *)mediaTitle;
115- (void)setMediaTitle:(GDataMediaTitle *)obj;
116
117@end
118
119#endif // #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_*_SERVICE