PageRenderTime 15ms CodeModel.GetById 9ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 49 lines | 14 code | 11 blank | 24 comment | 2 complexity | e90c57013298ad4993c72091e5a225d4 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//  GDataMediaKeywords.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 "GDataValueConstruct.h"
25// like <media:keywords>kitty, cat, big dog, yarn, fluffy</media:keywords>
26// http://search.yahoo.com/mrss
27
28@interface GDataMediaKeywords : GDataValueElementConstruct <GDataExtension>
29
30// array of strings
31+ (GDataMediaKeywords *)keywordsWithStrings:(NSArray *)array;
32
33// comma-separated list in a single string
34+ (GDataMediaKeywords *)keywordsWithString:(NSString *)str;
35
36- (NSArray *)keywords;
37- (void)setKeywords:(NSArray *)array;
38- (void)addKeyword:(NSString *)keyword;
39
40// convenience utilities
41
42// these are used to convert to and from the comma-separated keyword
43// list in the element body
44+ (NSString *)stringFromKeywords:(NSArray *)keywords;
45+ (NSArray *)keywordsFromString:(NSString *)commaSeparatedString;
46
47@end
48
49#endif // #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_*_SERVICE