PageRenderTime 31ms CodeModel.GetById 20ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://macfuse.googlecode.com/
C++ Header | 86 lines | 43 code | 19 blank | 24 comment | 1 complexity | db868e0ba7bdd112677b7376909fffdb MD5 | raw file
 1/* Copyright (c) 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//  GDataEntryYouTubeVideo.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE
21
22#import "GDataEntryBase.h"
23#import "GDataYouTubeMediaElements.h"
24#import "GDataYouTubeStatistics.h"
25#import "GDataYouTubePublicationState.h"
26#import "GDataYouTubeAccessControl.h"
27#import "GDataYouTubeRating.h"
28#import "GDataGeo.h"
29#import "GDataComment.h"
30#import "GDataLink.h"
31
32@interface GDataEntryYouTubeVideo : GDataEntryBase
33
34+ (GDataEntryYouTubeVideo *)videoEntry;
35
36- (GDataYouTubeStatistics *)statistics;
37- (void)setStatistics:(GDataYouTubeStatistics *)obj;
38
39- (GDataComment *)comment;
40- (void)setComment:(GDataComment *)obj;
41
42- (BOOL)isEmbeddable;
43- (void)setIsEmbeddable:(BOOL)flag;
44
45// rating previously was a GDataRating element <gd:rating> but has
46// changed to GDataYouTubeRating <yt:rating>
47- (GDataYouTubeRating *)rating;
48- (void)setRating:(GDataYouTubeRating *)obj;
49
50- (GDataYouTubeMediaGroup *)mediaGroup;
51- (void)setMediaGroup:(GDataYouTubeMediaGroup *)obj;
52
53// setGeoLocation requires an instance of a subclass of GDataGeo, not an
54// instance of GDataGeo; see GDataGeo.h
55//
56// for YouTube, use GDataGeoRSSWhere for the geo location
57- (GDataGeo *)geoLocation;
58- (void)setGeoLocation:(GDataGeo *)geo;
59
60- (GDataYouTubePublicationState *)publicationState;
61- (void)setGDataYouTubePublicationState:(GDataYouTubePublicationState *)obj;
62
63- (NSString *)location; // yt:location
64- (void)setLocation:(NSString *)str;
65
66- (GDataDateTime *)recordedDate;
67- (void)setRecordedDate:(GDataDateTime *)dateTime;
68
69- (NSArray *)accessControls;
70- (void)setAccessControls:(NSArray *)array;
71- (void)addAccessControl:(GDataYouTubeAccessControl *)obj;
72
73// convenience accessors
74- (GDataLink *)videoResponsesLink;
75- (GDataLink *)ratingsLink;
76- (GDataLink *)complaintsLink;
77- (GDataLink *)captionTracksLink;
78
79@end
80
81@interface GDataLink (GDataYouTubeVideoEntryAdditions)
82- (GDataYouTubeToken *)youTubeToken;
83- (void)setYouTubeToken:(GDataYouTubeToken *)obj;
84@end
85
86#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE