PageRenderTime 31ms CodeModel.GetById 15ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Elements/GDataEntryContent.h

http://macfuse.googlecode.com/
C++ Header | 79 lines | 33 code | 18 blank | 28 comment | 0 complexity | f3e94789443e0033776263a7d69818bf MD5 | raw file
 1/* Copyright (c) 2007-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//  GDataEntryContent.h
18//
19
20#import "GDataObject.h"
21
22#undef _EXTERN
23#undef _INITIALIZE_AS
24#ifdef GDATAENTRYCONTENT_DEFINE_GLOBALS
25#define _EXTERN
26#define _INITIALIZE_AS(x) =x
27#else
28#define _EXTERN GDATA_EXTERN
29#define _INITIALIZE_AS(x)
30#endif
31
32_EXTERN NSString* const kGDataContentTypeKML _INITIALIZE_AS(@"application/vnd.google-earth.kml+xml");
33
34
35// per http://www.atomenabled.org/developers/syndication/atom-format-spec.php#element.content
36//
37// For typed content, like <content type="text">Here go the ferrets</content>
38//
39// or media content with a source URI specified,
40//  <content src="http://lh.google.com/image/Car.jpg" type="image/jpeg"/>
41//
42// or a child feed or entry, like
43//  <content type="application/atom+xml;feed"> <feed>...</feed> </content>
44//
45// Text type can be text, text/plain, html, text/html, xhtml, text/xhtml
46
47@interface GDataEntryContent : GDataObject {
48  GDataObject *childObject_;
49}
50
51+ (id)contentWithString:(NSString *)str;
52
53+ (id)contentWithSourceURI:(NSString *)str type:(NSString *)type;
54
55+ (id)contentWithXMLValue:(NSXMLNode *)node type:(NSString *)type;
56
57+ (id)textConstructWithString:(NSString *)str; // deprecated
58
59- (NSString *)lang;
60- (void)setLang:(NSString *)str;
61
62- (NSString *)type;
63- (void)setType:(NSString *)str;
64
65- (NSString *)sourceURI;
66- (void)setSourceURI:(NSString *)str;
67- (NSURL *)sourceURL;
68
69- (NSString *)stringValue;
70- (void)setStringValue:(NSString *)str;
71
72- (GDataObject *)childObject;
73- (void)setChildObject:(GDataObject *)obj;
74
75- (NSArray *)XMLValues;
76- (void)setXMLValues:(NSArray *)arr;
77- (void)addXMLValue:(NSXMLNode *)node;
78
79@end