PageRenderTime 29ms CodeModel.GetById 24ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C++ Header | 56 lines | 22 code | 14 blank | 20 comment | 0 complexity | f309ec450f352864a09c1a3ba8047172 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//  GDataFeedLink.h
18//
19
20#import "GDataObject.h"
21
22@class GDataFeedBase;
23
24// a link to a feed, like
25// <gd:feedLink href="http://example.com/Jo/posts/MyFirstPost/comments" countHint="10">
26
27@interface GDataFeedLink : GDataObject <NSCopying, GDataExtension> {
28  GDataFeedBase *feed_;
29}
30
31+ (id)feedLinkWithHref:(NSString *)href
32            isReadOnly:(BOOL)isReadOnly;
33
34- (id)initWithXMLElement:(NSXMLElement *)element
35                  parent:(GDataObject *)parent;
36
37- (NSXMLElement *)XMLElement;
38
39- (NSString *)href;
40- (void)setHref:(NSString *)str;
41
42- (BOOL)isReadOnly;
43- (void)setIsReadOnly:(BOOL)isReadOnly;
44
45- (NSNumber *)countHint;
46- (void)setCountHint:(NSNumber *)val;
47
48- (NSString *)rel;
49- (void)setRel:(NSString *)str;
50
51- (GDataFeedBase *)feed;
52- (void)setFeed:(GDataFeedBase *)feed;
53
54// convert the href string into an URL
55- (NSURL *)URL;
56@end